diff options
author | Jeremy Allison <jra@samba.org> | 2002-01-19 21:37:38 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-01-19 21:37:38 +0000 |
commit | 4668960b1de80f9928104d20a7dfd8eee9d21c77 (patch) | |
tree | 0146aa535381cda926039bc6b2938049a98307bb | |
parent | e400bfce39dac2f4ff75184d52965aba6b9848de (diff) | |
download | samba-4668960b1de80f9928104d20a7dfd8eee9d21c77.tar.gz samba-4668960b1de80f9928104d20a7dfd8eee9d21c77.tar.bz2 samba-4668960b1de80f9928104d20a7dfd8eee9d21c77.zip |
Added #ifdef for FreeBSD TCP bug.
Jeremy.
(This used to be commit 80df5ab07e2149e7cc3a4a0a6695da01e8f9492c)
-rw-r--r-- | source3/lib/util_sock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index c6c26155da..ba3c6f71b4 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -666,7 +666,11 @@ BOOL receive_smb(int fd,char *buffer, unsigned int timeout) } if(len > 0) { +#ifdef FREEBSD_TCP_BUG + ret = read_socket_with_timeout(fd,buffer+4,len,len,10000); +#else ret = read_socket_data(fd,buffer+4,len); +#endif if (ret != len) { smb_read_error = READ_ERROR; return False; |