1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s4-ipv6: fixed a crash in the IPv6 DNS code

This commit is contained in:
Andrew Tridgell 2011-06-07 14:10:38 +10:00
parent a58e69a734
commit 285293c8b5

View File

@ -267,7 +267,7 @@ static void run_child_dns_lookup(struct dns_ex_state *state, int fd)
port = state->port;
}
switch (rr->type) {
switch (addrs_rr[i]->type) {
case rk_ns_t_a:
if (inet_ntop(AF_INET, addrs_rr[i]->u.a,
addrstr, sizeof(addrstr)) == NULL) {