diff options
Diffstat (limited to 'epan/dissectors/packet-rtse.c')
-rw-r--r-- | epan/dissectors/packet-rtse.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/epan/dissectors/packet-rtse.c b/epan/dissectors/packet-rtse.c index b0c59d5073..11b7cc84a2 100644 --- a/epan/dissectors/packet-rtse.c +++ b/epan/dissectors/packet-rtse.c @@ -117,6 +117,7 @@ static expert_field ei_rtse_unknown_rtse_pdu = EI_INIT; static expert_field ei_rtse_abstract_syntax = EI_INIT; static dissector_table_t rtse_oid_dissector_table=NULL; +static dissector_handle_t rtse_handle = NULL; static GHashTable *oid_table=NULL; static gint ett_rtse_unknown = -1; @@ -165,11 +166,8 @@ register_rtse_oid_dissector_handle(const char *oid, dissector_handle_t dissector { /* XXX: Note that this fcn is called from proto_reg_handoff in *other* dissectors ... */ - static dissector_handle_t rtse_handle = NULL; static dissector_handle_t ros_handle = NULL; - if (rtse_handle == NULL) - rtse_handle = find_dissector("rtse"); if (ros_handle == NULL) ros_handle = find_dissector("ros"); @@ -738,7 +736,7 @@ dissect_rtse_RTSE_apdus(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset /*--- End of included file: packet-rtse-fn.c ---*/ -#line 194 "./asn1/rtse/packet-rtse-template.c" +#line 192 "./asn1/rtse/packet-rtse-template.c" /* * Dissect RTSE PDUs inside a PPDU. @@ -1011,7 +1009,7 @@ void proto_register_rtse(void) { NULL, HFILL }}, /*--- End of included file: packet-rtse-hfarr.c ---*/ -#line 366 "./asn1/rtse/packet-rtse-template.c" +#line 364 "./asn1/rtse/packet-rtse-template.c" }; /* List of subtrees */ @@ -1033,7 +1031,7 @@ void proto_register_rtse(void) { &ett_rtse_CallingSSuserReference, /*--- End of included file: packet-rtse-ettarr.c ---*/ -#line 375 "./asn1/rtse/packet-rtse-template.c" +#line 373 "./asn1/rtse/packet-rtse-template.c" }; static ei_register_info ei[] = { @@ -1047,7 +1045,7 @@ void proto_register_rtse(void) { /* Register protocol */ proto_rtse = proto_register_protocol(PNAME, PSNAME, PFNAME); - register_dissector("rtse", dissect_rtse, proto_rtse); + rtse_handle = register_dissector("rtse", dissect_rtse, proto_rtse); /* Register fields and subtrees */ proto_register_field_array(proto_rtse, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); |