aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lpd.c
diff options
context:
space:
mode:
authorGreg Morris <GMORRIS@novell.com>2007-08-30 10:33:24 +0000
committerGreg Morris <GMORRIS@novell.com>2007-08-30 10:33:24 +0000
commit1506ed6fcc8e7a56c2b7d55236049f80d103b827 (patch)
tree26ca53879b30d90c25aca6b77a1349f1a56ae7dd /epan/dissectors/packet-lpd.c
parent82b75c4a19d3b84d2ab6249776958dc1f9b79cd7 (diff)
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
Diffstat (limited to 'epan/dissectors/packet-lpd.c')
-rw-r--r--epan/dissectors/packet-lpd.c2
1 files changed, 1 insertions, 1 deletions
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) {