diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-06-07 14:10:38 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-06-07 15:48:42 +1000 |
commit | 285293c8b5d85383aa5af9968dc73fba5beb9de0 (patch) | |
tree | 03f92c7a87098b43fdbd979d34a1781194cff742 /source4 | |
parent | a58e69a734085f9963b60042be3d9a33a90616a7 (diff) | |
download | samba-285293c8b5d85383aa5af9968dc73fba5beb9de0.tar.gz samba-285293c8b5d85383aa5af9968dc73fba5beb9de0.tar.bz2 samba-285293c8b5d85383aa5af9968dc73fba5beb9de0.zip |
s4-ipv6: fixed a crash in the IPv6 DNS code
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/resolve/dns_ex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c index cb2d2c3d2c..1d56a4b4d5 100644 --- a/source4/libcli/resolve/dns_ex.c +++ b/source4/libcli/resolve/dns_ex.c @@ -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) { |