patch-1.3.67 linux/net/ipv4/udp.c

Next file: linux/scripts/ksymoops.cc
Previous file: linux/net/ipv4/timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.66/linux/net/ipv4/udp.c linux/net/ipv4/udp.c
@@ -573,15 +573,14 @@
 }
 
 
-static void udp_close(struct sock *sk, int timeout)
+static void udp_close(struct sock *sk, unsigned long timeout)
 {
 	lock_sock(sk);
 	sk->state = TCP_CLOSE;
 	if(uh_cache_sk==sk)
 		udp_cache_zap();
 	release_sock(sk);
-	if (sk->dead) 
-		destroy_sock(sk);
+	destroy_sock(sk);
 }
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this