diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-08-26 19:41:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-08-26 19:41:09 +0000 |
commit | e766fc1c2cc0bbb14f2e53d4885516491960544e (patch) | |
tree | 8ed60c03ef647c1c9637b03aca70791bb661d3a3 /packet-ip.c | |
parent | 4ecb7cb4f2d82e6177c4bc36ce37380cc31dffcf (diff) |
Pass the pointer in the "data" field of the destination address, not a
pointer to that pointer, to "ip_to_str()".
svn path=/trunk/; revision=8273
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))); |