summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_sock.c4
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;