diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2015-05-25 16:11:03 +0200 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2015-05-25 14:58:58 +0000 |
commit | 886b25e2bb12eeb12dd60f2900f6e606ea0a8a9f (patch) | |
tree | 3b295fbe931621e6c6d5223454c84effa87c5ffa /epan | |
parent | 16715e01b6603164abf647d7df15e8f9558fbd51 (diff) |
iso7816: remove one proto_tree_add_text() call
Change-Id: I3905fb83f5f70ee80e54fba479c0e8caca5baa6c
Reviewed-on: https://code.wireshark.org/review/8627
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-iso7816.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-iso7816.c b/epan/dissectors/packet-iso7816.c index 0acc42a33d..89473fb657 100644 --- a/epan/dissectors/packet-iso7816.c +++ b/epan/dissectors/packet-iso7816.c @@ -286,7 +286,6 @@ dissect_iso7816_atr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d proto_tree *proto_tr; guint8 tb, tc, td, k=0; gint tck_len; - proto_item *err_it; init_char = tvb_get_guint8(tvb, offset); if (init_char!=0x3B && init_char!=0x3F) @@ -389,9 +388,8 @@ dissect_iso7816_atr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d offset++; } else if (tck_len>1) { - err_it = proto_tree_add_text(proto_tr, tvb, offset, tck_len, - "Invalid TCK byte"); - expert_add_info(pinfo, err_it, &ie_iso7816_atr_tck_not1); + proto_tree_add_expert(proto_tr, pinfo, &ie_iso7816_atr_tck_not1, + tvb, offset, tck_len); } proto_item_set_len(proto_it, offset); |