aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2016-07-10 13:51:14 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2016-07-10 11:52:54 +0000
commit3ea8ccf69f67387c779c6038c9d826bb13f57463 (patch)
treedd1cb3a073c46eb9a35ebaf96b5e69b64b77a180
parentd68043a66bcedfa8f7070bb597cbfa8b903e570a (diff)
iso14443: the uid size is a generated item
Change-Id: I77952e0099ed8103c8316becafc700866b4c46d8 Reviewed-on: https://code.wireshark.org/review/16366 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
-rw-r--r--epan/dissectors/packet-iso14443.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iso14443.c b/epan/dissectors/packet-iso14443.c
index bc5c341..5f4cb1a 100644
--- a/epan/dissectors/packet-iso14443.c
+++ b/epan/dissectors/packet-iso14443.c
@@ -341,8 +341,10 @@ dissect_iso14443_cmd_type_wupa(tvbuff_t *tvb, packet_info *pinfo,
pi_uid = proto_tree_add_item(tree, hf_iso14443_uid_bits,
tvb, offset, 2, ENC_LITTLE_ENDIAN);
if (uid_size != 0) {
- proto_tree_add_uint(tree, hf_iso14443_uid_size,
+ proto_item *pi_uid_size;
+ pi_uid_size = proto_tree_add_uint(tree, hf_iso14443_uid_size,
tvb, offset+1, 1, uid_size);
+ PROTO_ITEM_SET_GENERATED(pi_uid_size);
}
else {
expert_add_info(pinfo, pi_uid, &ei_iso14443_uid_inval_size);