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 | 80df5ab07e2149e7cc3a4a0a6695da01e8f9492c (patch) | |
tree | 9a1fba1be6d9f32ed47184d162cfd850e8a32dbd /source | |
parent | 832b9e7838afc0a48932dd0622c7e2f7b7e44a8f (diff) | |
download | samba-80df5ab07e2149e7cc3a4a0a6695da01e8f9492c.tar.gz samba-80df5ab07e2149e7cc3a4a0a6695da01e8f9492c.tar.xz samba-80df5ab07e2149e7cc3a4a0a6695da01e8f9492c.zip |
Added #ifdef for FreeBSD TCP bug.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/util_sock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index c6c26155da9..ba3c6f71b4e 100644 --- a/source/lib/util_sock.c +++ b/source/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; |