aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-p_mul.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-08-05 18:09:43 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-08-05 18:09:43 +0000
commit5fa2a99087bc56ea57ff31a7abf1d17f6bf8a2ca (patch)
treed7066597386b650b9f4b82cf5ea9c8e22c36a980 /epan/dissectors/packet-p_mul.c
parent9999016855a210f7b0417592c7543c19abf76d41 (diff)
Keep result of [new_]register_dissector in some dissectors.
svn path=/trunk/; revision=51156
Diffstat (limited to 'epan/dissectors/packet-p_mul.c')
-rw-r--r--epan/dissectors/packet-p_mul.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-p_mul.c b/epan/dissectors/packet-p_mul.c
index 36b72969ce..0f6d564420 100644
--- a/epan/dissectors/packet-p_mul.c
+++ b/epan/dissectors/packet-p_mul.c
@@ -159,6 +159,7 @@ static gint ett_msg_fragment = -1;
static gint ett_msg_fragments = -1;
static dissector_handle_t p_mul_handle = NULL;
+
static dissector_handle_t data_handle = NULL;
typedef struct _p_mul_id_key {
@@ -1577,7 +1578,8 @@ void proto_register_p_mul (void)
module_t *p_mul_module;
proto_p_mul = proto_register_protocol (PNAME, PSNAME, PFNAME);
- register_dissector(PFNAME, dissect_p_mul, proto_p_mul);
+
+ p_mul_handle = register_dissector(PFNAME, dissect_p_mul, proto_p_mul);
proto_register_field_array (proto_p_mul, hf, array_length (hf));
proto_register_subtree_array (ett, array_length (ett));
@@ -1635,7 +1637,6 @@ void proto_reg_handoff_p_mul (void)
static range_t *p_mul_port_range;
if (!p_mul_prefs_initialized) {
- p_mul_handle = find_dissector(PFNAME);
p_mul_prefs_initialized = TRUE;
data_handle = find_dissector ("data");
} else {