diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-08-22 16:09:27 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-08-22 16:09:27 +0000 |
commit | fcce452557a6f5cfc46972617ed6932bb7fbeb95 (patch) | |
tree | 5d683d1d9ac6232535962a29c772e214d7b2c1ff /source/lib/util.c | |
parent | 0e37688745f00787fab0c10e257d0526395456a2 (diff) | |
download | samba-fcce452557a6f5cfc46972617ed6932bb7fbeb95.tar.gz |
- fix client for pathworks 4 access
- fix "connection already connected" bug in open_socket_out()
Diffstat (limited to 'source/lib/util.c')
-rw-r--r-- | source/lib/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index e13a4c37e80..31ad3da31cb 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -2888,6 +2888,13 @@ connect_again: return -1; } +#ifdef EISCONN + if (ret < 0 && errno == EISCONN) { + errno = 0; + ret = 0; + } +#endif + if (ret < 0) { DEBUG(2,("error connecting to %s:%d (%s)\n", inet_ntoa(*addr),port,strerror(errno))); |