From 004eb8b1c153cb6d5e63dddc020e1b02ca43e2fd Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 18 Dec 2005 11:19:25 +0000 Subject: [PATCH] If we're going to use a handle for the data handle, we need to get a handle for that dissector. This fixes bug 637. svn path=/trunk/; revision=16842 --- asn1/tcap/packet-tcap-template.c | 3 ++- epan/dissectors/packet-tcap.c | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/asn1/tcap/packet-tcap-template.c b/asn1/tcap/packet-tcap-template.c index 44b26b0aa4..ebd171fb53 100644 --- a/asn1/tcap/packet-tcap-template.c +++ b/asn1/tcap/packet-tcap-template.c @@ -163,7 +163,8 @@ proto_reg_handoff_tcap(void) register_ber_oid_name("0.0.17.773.1.1.1", "itu-t(0) recommendation(0) q(17) 773 as(1) dialogue-as(1) version1(1)"); - + + data_handle = find_dissector("data"); } static void init_tcap(void); diff --git a/epan/dissectors/packet-tcap.c b/epan/dissectors/packet-tcap.c index 68a929d9c0..5b90d8ed78 100644 --- a/epan/dissectors/packet-tcap.c +++ b/epan/dissectors/packet-tcap.c @@ -2362,7 +2362,8 @@ proto_reg_handoff_tcap(void) register_ber_oid_name("0.0.17.773.1.1.1", "itu-t(0) recommendation(0) q(17) 773 as(1) dialogue-as(1) version1(1)"); - + + data_handle = find_dissector("data"); } static void init_tcap(void); @@ -2886,7 +2887,7 @@ proto_register_tcap(void) "", HFILL }}, /*--- End of included file: packet-tcap-hfarr.c ---*/ -#line 198 "packet-tcap-template.c" +#line 199 "packet-tcap-template.c" }; /* Setup protocol subtree array */ @@ -2950,7 +2951,7 @@ proto_register_tcap(void) &ett_tcap_ErrorCode, /*--- End of included file: packet-tcap-ettarr.c ---*/ -#line 207 "packet-tcap-template.c" +#line 208 "packet-tcap-template.c" }; /*static enum_val_t tcap_options[] = {