aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-q933.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-q933.c')
-rw-r--r--epan/dissectors/packet-q933.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-q933.c b/epan/dissectors/packet-q933.c
index d7a3f89350..7fbf6c1db9 100644
--- a/epan/dissectors/packet-q933.c
+++ b/epan/dissectors/packet-q933.c
@@ -142,6 +142,8 @@ static gint ett_q933_ie = -1;
static expert_field ei_q933_invalid_length = EI_INIT;
static expert_field ei_q933_information_element = EI_INIT;
+static dissector_handle_t q933_handle;
+
/*
* Q.933 message types.
*/
@@ -2231,15 +2233,12 @@ proto_register_q933(void)
expert_q933 = expert_register_protocol(proto_q933);
expert_register_field_array(expert_q933, ei, array_length(ei));
- register_dissector("q933", dissect_q933, proto_q933);
+ q933_handle = register_dissector("q933", dissect_q933, proto_q933);
}
void
proto_reg_handoff_q933(void)
{
- dissector_handle_t q933_handle;
-
- q933_handle = find_dissector("q933");
dissector_add_uint("fr.osinl", NLPID_Q_933, q933_handle);
dissector_add_uint("juniper.proto", JUNIPER_PROTO_Q933, q933_handle);
}