aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-02-07 23:50:59 +0000
committerAnders Broman <a.broman58@gmail.com>2016-02-08 05:54:49 +0000
commit0fbc8f80dae3fa7f47d121b25655ac86268681b8 (patch)
tree5fe92d4c565172b4e6a87f251238ffe3625c2246 /asn1
parentb82e1e0e9e14c12043f12cf7465febb94612433e (diff)
TCAP: Fix warning [-Wclobbered]
Add TCAP to clean ASN.1 dissector list. Change-Id: I256dabe0961b681d22c230378f19968d9f7eda26 Reviewed-on: https://code.wireshark.org/review/13812 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1')
-rw-r--r--asn1/tcap/tcap.cnf7
1 files changed, 6 insertions, 1 deletions
diff --git a/asn1/tcap/tcap.cnf b/asn1/tcap/tcap.cnf
index f196465936..e041ba9aae 100644
--- a/asn1/tcap/tcap.cnf
+++ b/asn1/tcap/tcap.cnf
@@ -84,6 +84,7 @@ ABRT-apdu/_untag/user-information abrt_user_information
gboolean pc;
gint tag;
guint32 len, comp_offset;
+ volatile guint32 _offset;
gint ind_field;
comp_offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &ber_class, &pc, &tag);
@@ -94,13 +95,17 @@ ABRT-apdu/_untag/user-information abrt_user_information
if (!next_tvb)
return comp_offset;
+ _offset = offset;
TRY {
- %(DEFAULT_BODY)s
+ _offset = dissect_ber_choice(actx, tree, tvb, _offset,
+ Component_choice, hf_index, ett_tcap_Component,
+ NULL);
}
CATCH_NONFATAL_ERRORS {
show_exception(tvb, actx->pinfo, tree, EXCEPT_CODE, GET_MESSAGE);
}
ENDTRY;
+ offset = _offset;
dissect_tcap_ITU_ComponentPDU(implicit_tag, next_tvb, 0, actx, tcap_top_tree, hf_index);