diff options
author | João Valverde <j@v6e.pt> | 2022-02-15 02:45:20 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2022-02-15 11:38:16 +0000 |
commit | 8efad466c4e62b0371659c8fd1d909038c36da27 (patch) | |
tree | 30fd6d3f87988d8b65dd52afcbcc88fbf0e28cc9 /epan/dissectors/packet-finger.c | |
parent | 8198dd51cd6c731f620c1c7edf370c9c70966a44 (diff) |
Tools: Fix fix-encoding-args.pl ASCII string validation
Do not require a useless ENC_NA parameter for string encodings.
FT_STRING and FT_STRINGZ types don't have any ndianness.
Follow-up to 6ec429622c9258eefd388caf21ce92ab5b9f54b4.
Diffstat (limited to 'epan/dissectors/packet-finger.c')
-rw-r--r-- | epan/dissectors/packet-finger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-finger.c b/epan/dissectors/packet-finger.c index 6d3b868714..676491548f 100644 --- a/epan/dissectors/packet-finger.c +++ b/epan/dissectors/packet-finger.c @@ -104,7 +104,7 @@ dissect_finger(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, finger_tree = proto_item_add_subtree(ti, ett_finger); if (is_query) { - expert_ti = proto_tree_add_item(finger_tree, hf_finger_query, tvb, 0, -1, ENC_ASCII|ENC_NA); + expert_ti = proto_tree_add_item(finger_tree, hf_finger_query, tvb, 0, -1, ENC_ASCII); if ((len < 2) || (tvb_memeql(tvb, len - 2, "\r\n", 2))) { /* * From RFC742, Send a single "command line", ending with <CRLF>. @@ -117,7 +117,7 @@ dissect_finger(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_item_set_generated(ti); } } else if (tree && finger_trans->rep_frame) { - proto_tree_add_item(finger_tree, hf_finger_response, tvb, 0, -1, ENC_ASCII|ENC_NA); + proto_tree_add_item(finger_tree, hf_finger_response, tvb, 0, -1, ENC_ASCII); if (finger_trans->req_frame) { nstime_t ns; |