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:
parent
e400bfce39
commit
4668960b1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user