diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-06-06 10:13:41 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-06-06 12:26:11 +1000 |
commit | 5d2dbf93b3bfed193c6d8224be6e1d3af7e66d0f (patch) | |
tree | 5c4da2d7405801d483c4695b36d63e21660832a0 /source4/librpc/rpc | |
parent | d8e2302330db1b4d1c5b29608823d46a03fd087a (diff) | |
download | samba-5d2dbf93b3bfed193c6d8224be6e1d3af7e66d0f.tar.gz samba-5d2dbf93b3bfed193c6d8224be6e1d3af7e66d0f.tar.bz2 samba-5d2dbf93b3bfed193c6d8224be6e1d3af7e66d0f.zip |
s4-ipv6: allow for IPv6 in dcerpc socket calls
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_sock.c b/source4/librpc/rpc/dcerpc_sock.c index f0451ac674..1cd4d7121e 100644 --- a/source4/librpc/rpc/dcerpc_sock.c +++ b/source4/librpc/rpc/dcerpc_sock.c @@ -389,7 +389,7 @@ static void continue_ip_resolve_name(struct composite_context *ctx) if (!composite_is_ok(c)) return; /* prepare server address using host ip:port and transport name */ - s->srvaddr = socket_address_from_strings(s->conn, "ipv4", s->address, s->port); + s->srvaddr = socket_address_from_strings(s->conn, "ip", s->address, s->port); if (composite_nomem(s->srvaddr, c)) return; /* resolve_nbt_name gives only ipv4 ... - send socket open request */ @@ -423,7 +423,7 @@ static void continue_ipv6_open_socket(struct composite_context *ctx) talloc_free(s->srvaddr); /* prepare server address using host:ip and transport name */ - s->srvaddr = socket_address_from_strings(s->conn, "ipv4", s->address, s->port); + s->srvaddr = socket_address_from_strings(s->conn, "ip", s->address, s->port); if (composite_nomem(s->srvaddr, c)) return; /* try IPv4 if IPv6 fails */ |