s4-netlogon: force an IPv4 address
authorAndrew Tridgell <tridge@samba.org>
Mon, 6 Jun 2011 05:19:16 +0000 (15:19 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 7 Jun 2011 02:55:37 +0000 (12:55 +1000)
this interface is currently V4 only, don't try and return a V6 address
in a V4 structure

source4/cldap_server/netlogon.c

index e950d70ffc252f42a9bbe96716f284604126aa74..92f7a4a752f7ef64c950f8e78e72896b2e4069d5 100644 (file)
@@ -300,7 +300,7 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
        if (src_address) {
                pdc_ip = iface_list_best_ip(ifaces, src_address);
        } else {
-               pdc_ip = iface_list_n_ip(ifaces, 0);
+               pdc_ip = iface_list_first_v4(ifaces);
        }
        ZERO_STRUCTP(netlogon);