pcp: fix reporting of error status in info column
Typo when the dissector was first written. It should have always been the offset. Change-Id: Ica7e88571d3746811b574834cbfa0f91218d573c Reviewed-on: https://code.wireshark.org/review/11393 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
8d0f27a7e8
commit
caeb5b0c2f
|
@ -545,7 +545,7 @@ static int dissect_pcp_message_error(tvbuff_t *tvb, packet_info *pinfo, proto_tr
|
|||
|
||||
/* add the error item to the tree and column */
|
||||
proto_tree_add_item(tree, hf_pcp_pdu_error, tvb, offset, 4, ENC_BIG_ENDIAN);
|
||||
error_num = tvb_get_ntohl(tvb, 4);
|
||||
error_num = tvb_get_ntohl(tvb, offset);
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, "error=%s ",
|
||||
val_to_str(error_num, packettypenames_errors, "Unknown Error:%i"));
|
||||
offset += 4;
|
||||
|
|
Loading…
Reference in New Issue