1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r22926: Don't use <=0, use < 0 to allow keepalives to propagate up.

Jeremy.
(This used to be commit bf0313629e16c27461b028d3ea49185e99fc4d9c)
This commit is contained in:
Jeremy Allison 2007-05-16 01:49:33 +00:00 committed by Gerald (Jerry) Carter
parent 2b2eec4cfc
commit 05ee952d10

View 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) <= 0) {
if (receive_smb_raw(fd, buffer, timeout, 0) < 0) {
return False;
}