summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-05-16 01:13:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:08 -0500
commit51101a94505c16bb8c429e8f10ee1eaa85ffc5e0 (patch)
tree4fc22427a96ce7c0d35ab6a76ae6c7102c005a03
parentc3bde5a591b79682cba273e32229f6ffb9bdf531 (diff)
downloadsamba-51101a94505c16bb8c429e8f10ee1eaa85ffc5e0.tar.gz
samba-51101a94505c16bb8c429e8f10ee1eaa85ffc5e0.tar.bz2
samba-51101a94505c16bb8c429e8f10ee1eaa85ffc5e0.zip
r22923: Fix runaway smbd now receive_smb_raw() returns a ssize_t not a BOOL.
Jeremy. (This used to be commit 9204f1741bbdd693351b61ac1810dd722cfbf233)
-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 8f32e47bb8..d491fe7e4c 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)) {
+ if (receive_smb_raw(fd, buffer, timeout, 0) <= 0) {
return False;
}