diff options
author | Michael Mann <mmann78@netscape.net> | 2015-02-26 22:03:12 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-03-01 12:54:33 +0000 |
commit | 9c55903029ee0e6720597ef07e8a5b359cae068e (patch) | |
tree | 251dddfa5de23777e225e128529b00a7a0143b76 /epan/dissectors/packet-vines.c | |
parent | 5f2c8e9575eb6afb6c645d43a015cff035fcbeb0 (diff) | |
download | wireshark-9c55903029ee0e6720597ef07e8a5b359cae068e.tar.gz |
Use COPY_ADDRESS_SHALLOW instead of duplicating TVB_SET_ADDRESS and SET_ADDRESS calls for the same address.
Change-Id: I0c9cc5d574fdd73ecf1f8b32dbbf0ddb2b885116
Reviewed-on: https://code.wireshark.org/review/7437
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-vines.c')
-rw-r--r-- | epan/dissectors/packet-vines.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-vines.c b/epan/dissectors/packet-vines.c index 0d8ea850eb..4683d0beed 100644 --- a/epan/dissectors/packet-vines.c +++ b/epan/dissectors/packet-vines.c @@ -554,10 +554,10 @@ dissect_vines_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) vip_tctl); TVB_SET_ADDRESS(&pinfo->net_src, AT_VINES, tvb, offset+12, VINES_ADDR_LEN); - TVB_SET_ADDRESS(&pinfo->src, AT_VINES, tvb, offset+12, VINES_ADDR_LEN); + COPY_ADDRESS_SHALLOW(&pinfo->src, &pinfo->net_src); dst_addr = tvb_get_ptr(tvb, offset+6, VINES_ADDR_LEN); TVB_SET_ADDRESS(&pinfo->net_dst, AT_VINES, tvb, offset+6, VINES_ADDR_LEN); - TVB_SET_ADDRESS(&pinfo->dst, AT_VINES, tvb, offset+6, VINES_ADDR_LEN); + COPY_ADDRESS_SHALLOW(&pinfo->dst, &pinfo->net_dst); /* helpers to transport control */ if (memcmp(dst_addr, bcast_addr, VINES_ADDR_LEN) == 0) |