diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2007-04-13 17:46:54 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2007-04-13 17:46:54 +0000 |
commit | 06a52917ad20ce3019b76673799339d7b54c235b (patch) | |
tree | c96f26c54ad4490bbc5f660d53f33eb5239a6c27 /asn1/h248 | |
parent | a7615a1afb1f2c04846fe4c6d038db97c8131bf6 (diff) |
Have the h248term handle evaluated as late as possible.
svn path=/trunk/; revision=21413
Diffstat (limited to 'asn1/h248')
-rw-r--r-- | asn1/h248/packet-h248-template.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c index b9fef3fe5f..077ace6568 100644 --- a/asn1/h248/packet-h248-template.c +++ b/asn1/h248/packet-h248-template.c @@ -1217,6 +1217,11 @@ static void h248_init(void) { if ( tcp_port) { dissector_add("tcp.port", tcp_port, h248_tpkt_handle); } + + if (!h248_term_handle){ + h248_term_handle = find_dissector("h248term"); + } + } /*--- proto_register_h248 ----------------------------------------------*/ @@ -1365,7 +1370,6 @@ void proto_register_h248(void) { void proto_reg_handoff_h248(void) { h248_handle = find_dissector("h248"); - h248_term_handle = find_dissector("h248term"); h248_tpkt_handle = find_dissector("h248.tpkt"); dissector_add("mtp3.service_indicator", GATEWAY_CONTROL_PROTOCOL_USER_ID, h248_handle); |