aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-imf.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-imf.c
parent9999016855a210f7b0417592c7543c19abf76d41 (diff)
Keep result of [new_]register_dissector in some dissectors.
svn path=/trunk/; revision=51156
Diffstat (limited to 'epan/dissectors/packet-imf.c')
-rw-r--r--epan/dissectors/packet-imf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/epan/dissectors/packet-imf.c b/epan/dissectors/packet-imf.c
index 279074e2ab..1a7f4af42e 100644
--- a/epan/dissectors/packet-imf.c
+++ b/epan/dissectors/packet-imf.c
@@ -150,6 +150,8 @@ static int ett_imf_siolabel = -1;
static int ett_imf_extension = -1;
static int ett_imf_message_text = -1;
+static dissector_handle_t imf_handle;
+
static expert_field ei_imf_unknown_param = EI_INIT;
struct imf_field {
@@ -1244,7 +1246,7 @@ proto_register_imf(void)
expert_register_field_array(expert_imf, ei, array_length(ei));
/* Allow dissector to find be found by name. */
- register_dissector(PFNAME, dissect_imf, proto_imf);
+ imf_handle = register_dissector(PFNAME, dissect_imf, proto_imf);
imf_module = prefs_register_protocol(proto_imf, NULL);
prefs_register_uat_preference(imf_module, "custom_header_fields", "Custom IMF headers",
@@ -1264,10 +1266,6 @@ proto_register_imf(void)
void
proto_reg_handoff_imf(void)
{
- dissector_handle_t imf_handle;
-
- imf_handle = find_dissector(PFNAME);
-
dissector_add_string("media_type",
"message/rfc822", imf_handle);