From 1506ed6fcc8e7a56c2b7d55236049f80d103b827 Mon Sep 17 00:00:00 2001 From: Greg Morris Date: Thu, 30 Aug 2007 10:33:24 +0000 Subject: [PATCH] Test to see if packet is actually a request by verifying the one byte function code is a non-zero value. svn path=/trunk/; revision=22749 --- epan/dissectors/packet-lpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-lpd.c b/epan/dissectors/packet-lpd.c index a683c680cb..5b9031fbed 100644 --- a/epan/dissectors/packet-lpd.c +++ b/epan/dissectors/packet-lpd.c @@ -95,7 +95,7 @@ dissect_lpd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } if (check_col(pinfo->cinfo, COL_INFO)) { - if (lpr_packet_type == request) { + if (lpr_packet_type == request && code !=0) { col_set_str(pinfo->cinfo, COL_INFO, val_to_str(code, lpd_client_code, "Unknown client code: %u")); } else if (lpr_packet_type == response) {