aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/t38/packet-t38-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/asn1/t38/packet-t38-template.c')
-rw-r--r--epan/dissectors/asn1/t38/packet-t38-template.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/epan/dissectors/asn1/t38/packet-t38-template.c b/epan/dissectors/asn1/t38/packet-t38-template.c
index a4d6817c0c..34d4d7357b 100644
--- a/epan/dissectors/asn1/t38/packet-t38-template.c
+++ b/epan/dissectors/asn1/t38/packet-t38-template.c
@@ -196,18 +196,6 @@ static t38_packet_info t38_info_arr[MAX_T38_MESSAGES_IN_PACKET];
static int t38_info_current=0;
static t38_packet_info *t38_info=NULL;
-static void t38_defragment_init(void)
-{
- /* Init reassembly table */
- reassembly_table_init(&data_reassembly_table,
- &addresses_reassembly_table_functions);
-}
-
-static void t38_defragment_cleanup(void)
-{
- reassembly_table_destroy(&data_reassembly_table);
-}
-
/* Set up an T38 conversation */
void t38_add_address(packet_info *pinfo,
@@ -721,9 +709,9 @@ proto_register_t38(void)
expert_register_field_array(expert_t38, ei, array_length(ei));
register_dissector("t38_udp", dissect_t38_udp, proto_t38);
- /* Init reassemble tables for HDLC */
- register_init_routine(t38_defragment_init);
- register_cleanup_routine(t38_defragment_cleanup);
+ /* Register reassemble tables for HDLC */
+ reassembly_table_register(&data_reassembly_table,
+ &addresses_reassembly_table_functions);
t38_tap = register_tap("t38");