svn commit: samba r22926 - in branches: SAMBA_3_0/source/lib SAMBA_3_0_26/source/lib

jra at samba.org jra at samba.org
Wed May 16 01:49:34 GMT 2007


Author: jra
Date: 2007-05-16 01:49:33 +0000 (Wed, 16 May 2007)
New Revision: 22926

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22926

Log:
Don't use <=0, use < 0 to allow keepalives to propagate up.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/util_sock.c
   branches/SAMBA_3_0_26/source/lib/util_sock.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/util_sock.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_sock.c	2007-05-16 01:36:23 UTC (rev 22925)
+++ branches/SAMBA_3_0/source/lib/util_sock.c	2007-05-16 01:49:33 UTC (rev 22926)
@@ -738,7 +738,7 @@
 
 BOOL receive_smb(int fd, char *buffer, unsigned int timeout)
 {
-	if (receive_smb_raw(fd, buffer, timeout, 0) <= 0) {
+	if (receive_smb_raw(fd, buffer, timeout, 0) < 0) {
 		return False;
 	}
 

Modified: branches/SAMBA_3_0_26/source/lib/util_sock.c
===================================================================
--- branches/SAMBA_3_0_26/source/lib/util_sock.c	2007-05-16 01:36:23 UTC (rev 22925)
+++ branches/SAMBA_3_0_26/source/lib/util_sock.c	2007-05-16 01:49:33 UTC (rev 22926)
@@ -738,7 +738,7 @@
 
 BOOL receive_smb(int fd, char *buffer, unsigned int timeout)
 {
-	if (receive_smb_raw(fd, buffer, timeout, 0) <= 0) {
+	if (receive_smb_raw(fd, buffer, timeout, 0) < 0) {
 		return False;
 	}
 



More information about the samba-cvs mailing list