diff options
author | Michael Mann <mmann78@netscape.net> | 2013-10-28 13:36:49 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-10-28 13:36:49 +0000 |
commit | 3b91b9586fbb1f1cadeaa0b24a2521d8822c58d8 (patch) | |
tree | 593ed5da597ad0ceee006cdf385fa326c6e3ddc7 /asn1/tcap | |
parent | 6697d30b7213b1bf0147e5acfbbf1072e13d2810 (diff) |
Pass tcap_private into the dissectors that need it rather than use private_data. Not sure if value_ptr is the "proper" place to pass tcap_private "internally" within the TCAP dissector, but it gets away from (potential) private_data (ab)use.
svn path=/trunk/; revision=52916
Diffstat (limited to 'asn1/tcap')
-rw-r--r-- | asn1/tcap/packet-tcap-template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/tcap/packet-tcap-template.c b/asn1/tcap/packet-tcap-template.c index b3de566382..fa9264ecb1 100644 --- a/asn1/tcap/packet-tcap-template.c +++ b/asn1/tcap/packet-tcap-template.c @@ -211,7 +211,7 @@ dissect_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) tcapext_oid = NULL; raz_tcap_private(&tcap_private); - pinfo->private_data = &tcap_private; + asn1_ctx.value_ptr = &tcap_private; gp_tcapsrt_info=tcapsrt_razinfo(); tcap_subdissector_used=FALSE; gp_tcap_context=NULL; @@ -634,7 +634,7 @@ dissect_tcap_ITU_ComponentPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offs /* Call the sub dissector if present, and not already called */ if (is_subdissector) - call_dissector(subdissector_handle, tvb, actx->pinfo, tree); + call_dissector_with_data(subdissector_handle, tvb, actx->pinfo, tree, actx->value_ptr); return offset; } |