diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-15 05:49:43 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-15 05:49:43 +0000 |
commit | c499249f60d4e6f61272804397f4ecca216456b2 (patch) | |
tree | 26b227bd3fdd4303f46b9d2121e3393034b631cf /epan/dissectors/packet-h248_3gpp.c | |
parent | aa0e4132ca2dda860ffaab66d5099538afaa7bc6 (diff) |
actx in the rest of dissect_ber..()l
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21773 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-h248_3gpp.c')
-rw-r--r-- | epan/dissectors/packet-h248_3gpp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/dissectors/packet-h248_3gpp.c b/epan/dissectors/packet-h248_3gpp.c index 48eb19dfa1..90c69e966b 100644 --- a/epan/dissectors/packet-h248_3gpp.c +++ b/epan/dissectors/packet-h248_3gpp.c @@ -284,12 +284,15 @@ static void dissect_3GTFO_codec_mode(proto_tree* tree, tvbuff_t* tvb, packet_inf gint8 class; gboolean pc; gint32 tag; + asn1_ctx_t asn1_ctx; + + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); get_ber_identifier(tvb, 0, &class, &pc, &tag); /* XXX: is this enough to guess it? */ if ((tag==BER_UNI_TAG_OCTETSTRING)) { - dissect_ber_octet_string(FALSE, pinfo, tree, tvb, 0, hfid, &sub_tvb ); + dissect_ber_octet_string(FALSE, &asn1_ctx, tree, tvb, 0, hfid, &sub_tvb ); if (sub_tvb) { proto_tree* pt = proto_item_add_subtree(get_ber_last_created_item(),ett_h248_3GTFO_codec); @@ -306,11 +309,14 @@ static void dissect_3GTFO_codec_list(proto_tree* tree, tvbuff_t* tvb, packet_inf gint8 class; gboolean pc; gint32 tag; + asn1_ctx_t asn1_ctx; + + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); get_ber_identifier(tvb, 0, &class, &pc, &tag); if ((tag==BER_UNI_TAG_OCTETSTRING)) { - dissect_ber_octet_string(FALSE, pinfo, tree, tvb, 0, hfid, &sub_tvb ); + dissect_ber_octet_string(FALSE, &asn1_ctx, tree, tvb, 0, hfid, &sub_tvb ); if (sub_tvb) { proto_tree* pt = proto_item_add_subtree(get_ber_last_created_item(),ett_h248_3GTFO_codec_list); |