diff options
Diffstat (limited to 'epan/dissectors/packet-sndcp.c')
-rw-r--r-- | epan/dissectors/packet-sndcp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/epan/dissectors/packet-sndcp.c b/epan/dissectors/packet-sndcp.c index 717caa9048..be6aa64130 100644 --- a/epan/dissectors/packet-sndcp.c +++ b/epan/dissectors/packet-sndcp.c @@ -97,6 +97,8 @@ static const fragment_items npdu_frag_items = { /* dissectors for the data portion of this protocol */ static dissector_handle_t ip_handle; +static dissector_handle_t sndcp_handle; + /* reassembly of N-PDU */ @@ -559,7 +561,7 @@ proto_register_sndcp(void) /* Required function calls to register the header fields and subtrees used */ proto_register_field_array(proto_sndcp, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - register_dissector("sndcp", dissect_sndcp, proto_sndcp); + sndcp_handle = register_dissector("sndcp", dissect_sndcp, proto_sndcp); register_init_routine(sndcp_defragment_init); register_cleanup_routine(sndcp_defragment_cleanup); } @@ -571,10 +573,6 @@ proto_register_sndcp(void) void proto_reg_handoff_sndcp(void) { - dissector_handle_t sndcp_handle; - - sndcp_handle = find_dissector("sndcp"); - /* Register SNDCP dissector with LLC layer for SAPI 3,5,9 and 11 */ dissector_add_uint("llcgprs.sapi", 3, sndcp_handle); |