1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Added #ifdef for FreeBSD TCP bug.

Jeremy.
(This used to be commit 80df5ab07e)
This commit is contained in:
Jeremy Allison 2002-01-19 21:37:38 +00:00
parent e400bfce39
commit 4668960b1d

View File

@ -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;