summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-28 18:55:47 +0200
committerVolker Lendecke <vl@samba.org>2011-05-28 16:57:24 +0200
commit6bf5d9a61f241d21cf5980f3617c7e27469c4681 (patch)
tree2ae56fe6bad4fd0e440459f89b29f8a4b71ba9e5
parent9e05d3430fedde70fcb1f6a1121c2cb67e4ce0f0 (diff)
downloadsamba-6bf5d9a61f241d21cf5980f3617c7e27469c4681.tar.gz
samba-6bf5d9a61f241d21cf5980f3617c7e27469c4681.tar.bz2
samba-6bf5d9a61f241d21cf5980f3617c7e27469c4681.zip
s3: Fix smbsock_connect
If all connection attempts fail, return immediately. Plain bug.
-rw-r--r--source3/libsmb/smbsock_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smbsock_connect.c b/source3/libsmb/smbsock_connect.c
index 88b4533bad..8cf403c5ac 100644
--- a/source3/libsmb/smbsock_connect.c
+++ b/source3/libsmb/smbsock_connect.c
@@ -575,7 +575,7 @@ static void smbsock_any_connect_connected(struct tevent_req *subreq)
}
state->num_received += 1;
- if (state->num_received <= state->num_addrs) {
+ if (state->num_received < state->num_addrs) {
/*
* More addrs pending, wait for the others
*/