Move registration to a better place.

svn path=/trunk/; revision=44511
This commit is contained in:
Michael Tüxen 2012-08-15 06:14:10 +00:00
parent d34ca4d69d
commit 54e5d13d4b
1 changed files with 3 additions and 2 deletions

View File

@ -2724,7 +2724,6 @@ proto_register_dtls(void)
register_dissector("dtls", dissect_dtls, proto_dtls);
dtls_handle = find_dissector("dtls");
dissector_add_uint("sctp.ppi", DIAMETER_DTLS_PROTOCOL_ID, dtls_handle);
dtls_associations = g_tree_new(ssl_association_cmp);
register_init_routine(dtls_init);
@ -2750,8 +2749,10 @@ proto_reg_handoff_dtls(void)
dtls_parse_uat();
dtls_parse_old_keys();
if (initialized == FALSE)
if (initialized == FALSE) {
heur_dissector_add("udp", dissect_dtls_heur, proto_dtls);
dissector_add_uint("sctp.ppi", DIAMETER_DTLS_PROTOCOL_ID, find_dissector("dtls"));
}
initialized = TRUE;
}