From 5886bb20adfb0701bddbf3a845fe6596402f01ce Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 9 Sep 2005 08:29:10 +0000 Subject: From Didier Gautheron: pass error replies to the tap. svn path=/trunk/; revision=15738 --- epan/dissectors/packet-afp.c | 12 ++++++------ 1 file 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; -- cgit v1.2.3