From: Jeremy Allison Date: Wed, 16 May 2007 01:49:33 +0000 (+0000) Subject: r22926: Don't use <=0, use < 0 to allow keepalives to propagate up. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf0313629e16c27461b028d3ea49185e99fc4d9c;p=thirdparty%2Fsamba.git r22926: Don't use <=0, use < 0 to allow keepalives to propagate up. Jeremy. --- diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index d491fe7e4cc..d102e570ab1 100644 --- a/source/lib/util_sock.c +++ b/source/lib/util_sock.c @@ -738,7 +738,7 @@ ssize_t receive_smb_raw(int fd, char *buffer, unsigned int timeout, size_t maxle 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; }