1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4-netlogon: force an IPv4 address

this interface is currently V4 only, don't try and return a V6 address
in a V4 structure
This commit is contained in:
Andrew Tridgell 2011-06-06 15:19:16 +10:00
parent 6a6d4d8884
commit c6252c2e9d

View File

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