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

Next file: linux/net/ipv4/tcp.c
Previous file: linux/net/ipv4/packet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.66/linux/net/ipv4/raw.c linux/net/ipv4/raw.c
@@ -285,7 +285,7 @@
 	}
 }
 
-static void raw_close(struct sock *sk, int timeout)
+static void raw_close(struct sock *sk, unsigned long timeout)
 {
 	sk->state = TCP_CLOSE;
 #ifdef CONFIG_IP_MROUTE	
@@ -295,6 +295,7 @@
 		mroute_socket=NULL;
 	}
 #endif	
+	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