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:28:22 +0000 |
commit | b3f977cc57c0d73ace536ef800aa5d53443646f3 (patch) | |
tree | afd61cd66ad97f1e4f389059f6b31bcd8f8530cc | |
parent | 78fee11f4b9a253cfb65d3f4e60aee3acf59ba58 (diff) | |
download | wireshark-b3f977cc57c0d73ace536ef800aa5d53443646f3.tar.gz |
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>
(cherry picked from commit caeb5b0c2f461e1d51e914b0ef5e9adecc45dd76)
Reviewed-on: https://code.wireshark.org/review/11395
-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 888a11d93d..4fa08a5c2b 100644 --- a/epan/dissectors/packet-pcp.c +++ b/epan/dissectors/packet-pcp.c @@ -485,7 +485,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; |