summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-03-23 12:05:02 +0100
committerVolker Lendecke <vl@samba.org>2009-03-23 12:06:57 +0100
commit298bff5019be5a40dc0023b5af1e980fba91abd9 (patch)
treea7e9d91bb482517bf4313cfe612b26d90b442726 /source3/libsmb
parent979a1b06d01817a01967d9137e4f70f222fa8eab (diff)
downloadsamba-298bff5019be5a40dc0023b5af1e980fba91abd9.tar.gz
samba-298bff5019be5a40dc0023b5af1e980fba91abd9.tar.bz2
samba-298bff5019be5a40dc0023b5af1e980fba91abd9.zip
Fix connect to port 139 only -- thanks gd for bugging me :-)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index ebb01c44a6..525c361beb 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1841,10 +1841,9 @@ static NTSTATUS open_smb_socket(const struct sockaddr_storage *pss,
tevent_req_set_callback(r445, smb_sock_connected, fd445);
tevent_req_set_callback(r139, smb_sock_connected, fd139);
- while ((fd139->fd == -1)
- && tevent_req_is_in_progress(r139)
- && (fd445->fd == -1)
- && tevent_req_is_in_progress(r445)) {
+ while ((fd445->fd == -1) && (fd139->fd == -1)
+ && (tevent_req_is_in_progress(r139)
+ || tevent_req_is_in_progress(r445))) {
event_loop_once(ev);
}