summaryrefslogtreecommitdiff
path: root/source3/lib/util_sock.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-05-16 01:49:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:09 -0500
commit05ee952d1029f65b03412e2284f58d2d82184732 (patch)
treea582066f55d3663118100fe0de146180db816747 /source3/lib/util_sock.c
parent2b2eec4cfc0684009e135331f9e4e693a5def508 (diff)
downloadsamba-05ee952d1029f65b03412e2284f58d2d82184732.tar.gz
samba-05ee952d1029f65b03412e2284f58d2d82184732.tar.bz2
samba-05ee952d1029f65b03412e2284f58d2d82184732.zip
r22926: Don't use <=0, use < 0 to allow keepalives to propagate up.
Jeremy. (This used to be commit bf0313629e16c27461b028d3ea49185e99fc4d9c)
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r--source3/lib/util_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index d491fe7e4c..d102e570ab 100644
--- a/source3/lib/util_sock.c
+++ b/source3/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;
}