git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e400bfc
)
Added #ifdef for FreeBSD TCP bug.
author
Jeremy Allison
<jra@samba.org>
Sat, 19 Jan 2002 21:37:38 +0000
(21:37 +0000)
committer
Jeremy Allison
<jra@samba.org>
Sat, 19 Jan 2002 21:37:38 +0000
(21:37 +0000)
Jeremy.
(This used to be commit
80df5ab07e2149e7cc3a4a0a6695da01e8f9492c
)
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index c6c26155da96ff7e45277cac091550b58282fff3..ba3c6f71b4e548910878eff6edab56b765b92650 100644
(file)
--- 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;