aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-coap.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-06-11 05:34:33 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-06-11 05:34:33 +0000
commited0f343d8b95ef4d7195c477d0c31210bdb7c05a (patch)
tree824a173f4bbcf8b5c47b58763d958c2d0a397227 /epan/dissectors/packet-coap.c
parentcda44b2966e758ed9eac691f2e74b40561c20bbc (diff)
From Hauke Mehrtens:
In some places String and byte were mixed up which caused problems. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8780 svn path=/trunk/; revision=49883
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 }
},
};