1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-30 08:23:49 +03:00

r26409: Pass smb ports along.

This commit is contained in:
Jelmer Vernooij
2007-12-12 02:15:29 +01:00
committed by Stefan Metzmacher
parent f933b43621
commit 2833f320de
40 changed files with 121 additions and 98 deletions

View File

@@ -147,11 +147,12 @@ static void continue_resolve(struct composite_context *creq)
struct smb2_connect_state *state = talloc_get_type(c->private_data,
struct smb2_connect_state);
const char *addr;
const char *ports[2] = { "445", NULL };
c->status = resolve_name_recv(creq, state, &addr);
if (!composite_is_ok(c)) return;
creq = smbcli_sock_connect_send(state, addr, 445, state->host, c->event_ctx);
creq = smbcli_sock_connect_send(state, addr, ports, state->host, c->event_ctx);
composite_continue(c, creq, continue_socket, c);
}