patch-2.1.16 linux/fs/smbfs/sock.c
Next file: linux/fs/super.c
Previous file: linux/fs/proc/openpromfs.c
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Mon Dec 16 13:10:33 1996
-  Orig file: 
v2.1.15/linux/fs/smbfs/sock.c
-  Orig date: 
Thu Dec 12 19:37:18 1996
diff -u --recursive --new-file v2.1.15/linux/fs/smbfs/sock.c linux/fs/smbfs/sock.c
@@ -263,6 +263,10 @@
 				   (void *) (target + already_read),
 				   length - already_read, 0, 0, NULL);
 
+		if (result == 0)
+		{
+			return -EIO;
+		}
 		if (result < 0)
 		{
 			DPRINTK("smb_receive_raw: recvfrom error = %d\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov