r5411: make network interface selection a bit saner
[samba.git] / source4 / torture / nbt / wins.c
index 3f8b361a932686ba9e95480b6a772011a65d9a93..f92a23f7324abab9be421ed27b0bf21e49b0b2bd 100644 (file)
@@ -60,7 +60,7 @@ static BOOL nbt_test_wins_name(TALLOC_CTX *mem_ctx, const char *address,
        NTSTATUS status;
        struct nbt_name_socket *nbtsock = nbt_name_socket_init(mem_ctx, NULL);
        BOOL ret = True;
-       const char *myaddress = talloc_strdup(mem_ctx, iface_n_ip(0));
+       const char *myaddress = talloc_strdup(mem_ctx, iface_best_ip(address));
 
        /* we do the listen here to ensure the WINS server receives the packets from
           the right IP */