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
This commit is contained in:
Greg Morris 2007-08-30 10:33:24 +00:00
parent 82b75c4a19
commit 1506ed6fcc
1 changed files with 1 additions and 1 deletions

View File

@ -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) {