diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-06-06 15:19:16 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-06-07 12:55:37 +1000 |
commit | c6252c2e9d9c43496f1b5ecbf66099979096f66e (patch) | |
tree | aea1991f7db8404f9037df8e6433554029195eea /source4 | |
parent | 6a6d4d8884788c1e860bda886d168301623e1ea3 (diff) | |
download | samba-c6252c2e9d9c43496f1b5ecbf66099979096f66e.tar.gz samba-c6252c2e9d9c43496f1b5ecbf66099979096f66e.tar.bz2 samba-c6252c2e9d9c43496f1b5ecbf66099979096f66e.zip |
s4-netlogon: force an IPv4 address
this interface is currently V4 only, don't try and return a V6 address
in a V4 structure
Diffstat (limited to 'source4')
-rw-r--r-- | source4/cldap_server/netlogon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c index e950d70ffc..92f7a4a752 100644 --- a/source4/cldap_server/netlogon.c +++ b/source4/cldap_server/netlogon.c @@ -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); |