diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-26 19:41:09 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-26 19:41:09 +0000 |
commit | cdb4849047449bd5f02cf5359a005d72606a18c6 (patch) | |
tree | 8ed60c03ef647c1c9637b03aca70791bb661d3a3 /packet-ip.c | |
parent | a159afd84b2b62ca7d09643017fdec2c18f4bfd1 (diff) |
Pass the pointer in the "data" field of the destination address, not a
pointer to that pointer, to "ip_to_str()".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8273 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ip.c b/packet-ip.c index 06a97afede..2a625868c9 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.195 2003/08/23 09:09:32 sahlberg Exp $ + * $Id: packet-ip.c,v 1.196 2003/08/26 19:41:09 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -984,7 +984,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (tree) { if (ip_summary_in_tree) { proto_item_append_text(ti, ", Dst Addr: %s (%s)", - get_hostname((guint)(*((guint *)iph->ip_dst.data))), ip_to_str((guint8 *) &iph->ip_dst.data)); + get_hostname((guint)(*((guint *)iph->ip_dst.data))), ip_to_str((guint8 *) iph->ip_dst.data)); } proto_tree_add_ipv4(ip_tree, hf_ip_dst, tvb, offset + 16, 4, (guint)(*((guint *)iph->ip_dst.data))); proto_tree_add_ipv4_hidden(ip_tree, hf_ip_addr, tvb, offset + 16, 4, (guint)(*((guint *)iph->ip_dst.data))); |