s4-socket: allow connect_multi_next_socket to try all the IP for a given host
commit5d18e57bec9db9444ae738c24ef63b21e3197a77
authorMatthieu Patou <mat@matws.net>
Thu, 10 Nov 2011 14:36:22 +0000 (10 15:36 +0100)
committerMatthieu Patou <mat@samba.org>
Fri, 11 Nov 2011 19:28:11 +0000 (11 20:28 +0100)
treea2e7d8e27682361670fb1adb7119a99347c23b3d
parent29b5a95b1f85f1e7493fb6be4ea5eaf7931d9c23
s4-socket: allow connect_multi_next_socket to try all the IP for a given host

This fix an incorrect behavior which was that if a host has 2 IP but
was listening on only 1 (and the second one) connect_multi_next_socket
was not able to connect because it used only the first result.
source4/lib/socket/connect_multi.c