From 8efad466c4e62b0371659c8fd1d909038c36da27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Tue, 15 Feb 2022 02:45:20 +0000 Subject: 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. --- epan/dissectors/packet-kdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-kdp.c') diff --git a/epan/dissectors/packet-kdp.c b/epan/dissectors/packet-kdp.c index 3e8d417847..56097e4be9 100644 --- a/epan/dissectors/packet-kdp.c +++ b/epan/dissectors/packet-kdp.c @@ -87,7 +87,7 @@ static int dissect_kdp(tvbuff_t *tvb, if (version != 2) { /* Version other than 2 is really SDDP in UDP */ proto_tree_add_item(kdp_tree, hf_kdp_version, tvb, 0, 1, ENC_BIG_ENDIAN); - proto_tree_add_item(kdp_tree, hf_kdp_xml_body, tvb, 0, -1, ENC_ASCII|ENC_NA); + proto_tree_add_item(kdp_tree, hf_kdp_xml_body, tvb, 0, -1, ENC_ASCII); } else { proto_tree *flags_tree; header_len = tvb_get_guint8(tvb, 1) * 4; -- cgit v1.2.3