aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/snmp
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/packet-snmp-template.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index f85e17e373..f3def88c23 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -2178,6 +2178,7 @@ void proto_register_snmp(void) {
register_init_routine(renew_ue_cache);
+ register_ber_syntax_dissector("SNMP", proto_snmp, dissect_snmp_tcp);
}
@@ -2201,8 +2202,6 @@ void proto_reg_handoff_snmp(void) {
data_handle = find_dissector("data");
- register_ber_syntax_dissector("SNMP", proto_snmp, dissect_snmp_tcp);
-
/*
* Process preference settings.
*