]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r22923: Fix runaway smbd now receive_smb_raw() returns a ssize_t not a BOOL.
authorJeremy Allison <jra@samba.org>
Wed, 16 May 2007 01:13:25 +0000 (01:13 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:08 +0000 (12:22 -0500)
Jeremy.
(This used to be commit 9204f1741bbdd693351b61ac1810dd722cfbf233)

source3/lib/util_sock.c

index 8f32e47bb8ef064ee96a7bbb3d1cae10910e1d87..d491fe7e4cc16a4eaaf23738b515dffd184767a8 100644 (file)
@@ -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;
        }