patch-2.3.99-pre1 linux/net/appletalk/ddp.c

Next file: linux/net/atm/Makefile
Previous file: linux/mm/vmscan.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -1378,11 +1378,12 @@
 
 		if (n < 0)
 			return n;
-	} else
+	} else {
 		sk->protinfo.af_at.src_port = addr->sat_port;
 
-	if (atalk_find_or_insert_socket(sk, addr) != NULL)
-		return -EADDRINUSE;
+		if (atalk_find_or_insert_socket(sk, addr) != NULL)
+			return -EADDRINUSE;
+	}
 
 	sk->zapped = 0;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)