summaryrefslogtreecommitdiff
path: root/asn1/h225
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/h225')
-rw-r--r--asn1/h225/packet-h225-template.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/asn1/h225/packet-h225-template.c b/asn1/h225/packet-h225-template.c
index b2b6ec0a0c..4b7cab749f 100644
--- a/asn1/h225/packet-h225-template.c
+++ b/asn1/h225/packet-h225-template.c
@@ -940,7 +940,7 @@ void
proto_reg_handoff_h225(void)
{
static gboolean h225_prefs_initialized = FALSE;
- static dissector_handle_t h225ras_handle;
+ static dissector_handle_t h225ras_handle, q931_tpkt_handle;
static guint saved_h225_tls_port;
if (!h225_prefs_initialized) {
@@ -953,12 +953,13 @@ proto_reg_handoff_h225(void)
h4501_handle = find_dissector("h4501");
data_handle = find_dissector("data");
h225_prefs_initialized = TRUE;
+ q931_tpkt_handle = find_dissector("q931.tpkt");
} else {
- ssl_dissector_delete(saved_h225_tls_port, "q931.tpkt", TRUE);
+ ssl_dissector_delete(saved_h225_tls_port, q931_tpkt_handle);
}
saved_h225_tls_port = h225_tls_port;
- ssl_dissector_add(saved_h225_tls_port, "q931.tpkt", TRUE);
+ ssl_dissector_add(saved_h225_tls_port, q931_tpkt_handle);
}