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

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

diff -u --recursive --new-file v1.3.66/linux/net/ipv4/packet.c linux/net/ipv4/packet.c
@@ -204,7 +204,7 @@
  *	file side of the object.
  */
 
-static void packet_close(struct sock *sk, int timeout)
+static void packet_close(struct sock *sk, unsigned long timeout)
 {
 	/*
 	 *	Stop more data and kill the socket off.
@@ -236,6 +236,7 @@
 	}
 	
 	release_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