diff options
author | Ryan Doyle <ryan@doylenet.net> | 2015-10-29 21:28:46 +1100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-10-29 12:27:47 +0000 |
commit | caeb5b0c2f461e1d51e914b0ef5e9adecc45dd76 (patch) | |
tree | 8dee6b344399199305954f7f2baad4d9a65cd6f0 /epan/dissectors/packet-pcp.c | |
parent | 8d0f27a7e8e4cf82693f5d3454c97c771119c0fa (diff) |
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>
Diffstat (limited to 'epan/dissectors/packet-pcp.c')
-rw-r--r-- | epan/dissectors/packet-pcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pcp.c b/epan/dissectors/packet-pcp.c index 1de4c09019..9ed09a0962 100644 --- a/epan/dissectors/packet-pcp.c +++ b/epan/dissectors/packet-pcp.c @@ -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; |