diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-09-03 09:52:07 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-09-03 09:52:07 +0000 |
commit | e2ec56553eb128897c9de8cfe00e8268b1cb4ce1 (patch) | |
tree | ca566a150b1a114de49a46d3d3c3a7fd017fe9d8 /packet-udp.c | |
parent | 33662264eda0768b212004e38600a8a02d4981e7 (diff) | |
download | wireshark-e2ec56553eb128897c9de8cfe00e8268b1cb4ce1.tar.gz |
UDP tap fix.
Must queue the data to the udp tap before calling any subdissectors
or else, if the packet is short and there is an exception, we wont call the tap at all.
svn path=/trunk/; revision=8357
Diffstat (limited to 'packet-udp.c')
-rw-r--r-- | packet-udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-udp.c b/packet-udp.c index 0f08f13a10..aad0c77158 100644 --- a/packet-udp.c +++ b/packet-udp.c @@ -1,7 +1,7 @@ /* packet-udp.c * Routines for UDP packet disassembly * - * $Id: packet-udp.c,v 1.110 2003/08/23 09:09:33 sahlberg Exp $ + * $Id: packet-udp.c,v 1.111 2003/09/03 09:52:07 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -252,6 +252,7 @@ dissect_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) pinfo->srcport = udph->uh_sport; pinfo->destport = udph->uh_dport; + tap_queue_packet(udp_tap, pinfo, udph); /* * Call sub-dissectors. * @@ -266,7 +267,6 @@ dissect_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) */ if (!pinfo->in_error_pkt || tvb_length_remaining(tvb, offset) > 0) decode_udp_ports(tvb, offset, pinfo, tree, udph->uh_sport, udph->uh_dport); - tap_queue_packet(udp_tap, pinfo, udph); } void |