summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-02 16:16:16 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-02 16:16:16 +0000
commit986edc0146c97e5720733015dce8b413c51ba909 (patch)
treee024a91c35122173b056cd7c18d3402fa02d3610 /source3/lib
parentafd08462ad5ff6b3c4bf621e39c55853a608175e (diff)
downloadsamba-986edc0146c97e5720733015dce8b413c51ba909.tar.gz
samba-986edc0146c97e5720733015dce8b413c51ba909.tar.bz2
samba-986edc0146c97e5720733015dce8b413c51ba909.zip
- fix the EALREADY bug so connections to slow hosts with smbclient get
through - add workarounds to handle the win95 and WinNT bugs in handling password lengths in sessionsetup (This used to be commit 671b3a3a770c824ae77fcb83dc551054a880edad)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 86b0016dd2..c6a808ce83 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2877,12 +2877,12 @@ int open_socket_out(int type, struct in_addr *addr, int port ,int timeout)
connect_again:
ret = connect(res,(struct sockaddr *)&sock_out,sizeof(sock_out));
- if (ret < 0 && errno == EINPROGRESS && loops--) {
+ if (ret < 0 && (errno == EINPROGRESS || errno == EALREADY) && loops--) {
msleep(connect_loop);
goto connect_again;
}
- if (ret < 0 && errno == EINPROGRESS) {
+ if (ret < 0 && (errno == EINPROGRESS || errno == EALREADY)) {
DEBUG(2,("timeout connecting to %s:%d\n",inet_ntoa(*addr),port));
close(res);
return -1;