aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-coap.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r--epan/dissectors/packet-coap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c
index 3a81826738..4e359052e2 100644
--- a/epan/dissectors/packet-coap.c
+++ b/epan/dissectors/packet-coap.c
@@ -303,7 +303,7 @@ dissect_coap_opt_hex_string(tvbuff_t *tvb, proto_item *item, proto_tree *subtree
else
str = tvb_bytes_to_str_punct(tvb, offset, opt_length, ' ');
- proto_tree_add_string(subtree, hf, tvb, offset, opt_length, str);
+ proto_tree_add_item(subtree, hf, tvb, offset, opt_length, ENC_NA);
/* add info to the head of the packet detail */
proto_item_append_text(item, ": %s", str);
@@ -1040,7 +1040,7 @@ proto_register_coap(void)
},
{ &hf_coap_opt_unknown,
{ "Unknown", "coap.opt.unknown",
- FT_STRING, BASE_NONE, NULL, 0x0,
+ FT_BYTES, BASE_NONE, NULL, 0x0,
"Coap Unknown Option", HFILL }
},
};