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;
        }
 

Reply via email to