diff options
author | gmorris <gmorris@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-08-30 10:33:24 +0000 |
---|---|---|
committer | gmorris <gmorris@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-08-30 10:33:24 +0000 |
commit | e5729119689e959a5abfb338da74ebe645b47dbe (patch) | |
tree | 26ca53879b30d90c25aca6b77a1349f1a56ae7dd | |
parent | c3775b02fac517b1eeb5fdc1f88ef86e2a2ee289 (diff) |
Test to see if packet is actually a request by verifying the one byte function code is a non-zero value.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22749 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/dissectors/packet-lpd.c | 2 |
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) { |