aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-09-09 08:29:10 +0000
committerGuy Harris <guy@alum.mit.edu>2005-09-09 08:29:10 +0000
commit5886bb20adfb0701bddbf3a845fe6596402f01ce (patch)
tree0343187001b8a8922078ecfdab11d77a151d0f10
parentdc7b533e4133a86f25aa209bc0125adaac1dab5a (diff)
From Didier Gautheron: pass error replies to the tap.
svn path=/trunk/; revision=15738
-rw-r--r--epan/dissectors/packet-afp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-afp.c b/epan/dissectors/packet-afp.c
index 63158b8761..e33edb52e2 100644
--- a/epan/dissectors/packet-afp.c
+++ b/epan/dissectors/packet-afp.c
@@ -4259,12 +4259,6 @@ dissect_afp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (request_val->frame_res == 0)
request_val->frame_res = pinfo->fd->num;
- if (!len) {
- /* for some calls if the reply is an error there's no data
- */
- return;
- }
-
/*
* Tap the packet before the dissectors are called so we
* still get the tap listener called even if there is an
@@ -4272,6 +4266,12 @@ dissect_afp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
*/
tap_queue_packet(afp_tap, pinfo, request_val);
+ if (!len) {
+ /* for some calls if the reply is an error there's no data
+ */
+ return;
+ }
+
switch(afp_command) {
case AFP_BYTELOCK:
offset = dissect_reply_afp_byte_lock(tvb, pinfo, afp_tree, offset);break;