summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-06 10:11:53 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-06 12:26:11 +1000
commit3736f29696288f908aac4189aedfc7149c431caa (patch)
treedbad1a1536050f26350bc1c2f3c046a0ef15d488 /source4
parentb81eac1e2b47b0f3885cfe8bb251eeb6245706f9 (diff)
downloadsamba-3736f29696288f908aac4189aedfc7149c431caa.tar.gz
samba-3736f29696288f908aac4189aedfc7149c431caa.tar.bz2
samba-3736f29696288f908aac4189aedfc7149c431caa.zip
s4-ipv6: use the server address family
don't force v4 in connect_multi
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/socket/connect_multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/socket/connect_multi.c b/source4/lib/socket/connect_multi.c
index e3b58456c4..4ce5115e97 100644
--- a/source4/lib/socket/connect_multi.c
+++ b/source4/lib/socket/connect_multi.c
@@ -136,7 +136,7 @@ static void connect_multi_next_socket(struct composite_context *result)
if (composite_nomem(state, result)) return;
state->result = result;
- result->status = socket_create("ipv4", SOCKET_TYPE_STREAM, &state->sock, 0);
+ result->status = socket_create(multi->server_address->family, SOCKET_TYPE_STREAM, &state->sock, 0);
if (!composite_is_ok(result)) return;
state->addr = socket_address_copy(state, multi->server_address);