aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-27 15:58:52 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-27 15:58:52 +0000
commite16fa7d63c64fe3f43c46ba05bfb3dd7953d4b65 (patch)
treef961dc9f32719673676fb061b3064f18f6c71a0c /epan/dissectors/packet-dns.c
parent458055461b3c8d2fe1cef89e77fb5fb3d6deebdd (diff)
Add the IPv4 address, not the first 4 bytes of its name, to the
resolution table. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36370 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dns.c')
-rw-r--r--epan/dissectors/packet-dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index 418bffc810..43c2cd2f54 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -1283,7 +1283,7 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
proto_tree_add_item(rr_tree, hf_dns_rr_addr, tvb, cur_offset, 4, FALSE);
if ((class & 0x7f) == C_IN) {
- memcpy(&addr_int, addr, sizeof(addr_int));
+ tvb_memcpy(tvb, &addr_int, cur_offset, sizeof(addr_int));
add_ipv4_name(addr_int, name);
}
}