s4-librpc: do not limit to the first IP when trying to do a rpc connection
authorMatthieu Patou <mat@matws.net>
Thu, 10 Nov 2011 19:59:09 +0000 (20:59 +0100)
committerMatthieu Patou <mat@samba.org>
Fri, 11 Nov 2011 19:28:11 +0000 (20:28 +0100)
commit7c9b3cdcf79088ff284d2383676d3f26ae42f8fb
tree29d502e9aa6d3d54af8ed0d1b55aa9752de12647
parent5d18e57bec9db9444ae738c24ef63b21e3197a77
s4-librpc: do not limit to the first IP when trying to do a rpc connection

The function continue_ip_resolve_name was calling resolve_name_recv which returns
only the first IP for a given hostname.
Instead we use resolve_name_multiple_recv which returns all the IP for a given
hostname. This kind of problem can occur if a host has more than 1 IP but is listenning
only on 1.
source4/librpc/rpc/dcerpc_sock.c