summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-07 14:10:38 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-07 15:48:42 +1000
commit285293c8b5d85383aa5af9968dc73fba5beb9de0 (patch)
tree03f92c7a87098b43fdbd979d34a1781194cff742
parenta58e69a734085f9963b60042be3d9a33a90616a7 (diff)
downloadsamba-285293c8b5d85383aa5af9968dc73fba5beb9de0.tar.gz
samba-285293c8b5d85383aa5af9968dc73fba5beb9de0.tar.bz2
samba-285293c8b5d85383aa5af9968dc73fba5beb9de0.zip
s4-ipv6: fixed a crash in the IPv6 DNS code
-rw-r--r--source4/libcli/resolve/dns_ex.c2
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) {