From a70c9916b18ec21ec3480a9920e19ba7eedecbc7 Mon Sep 17 00:00:00 2001 From: ngdavid1013 <39626396+ngdavid1013@users.noreply.github.com> Date: Sat, 13 Apr 2024 10:17:45 -0700 Subject: [PATCH] Duplicate uat_load It seem that uat_load() is call by the system automatically after all the dissectors are initialized. Calling it again dynamically causes the table entries to appear twice. --- src/smf/packet-smf.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/smf/packet-smf.c b/src/smf/packet-smf.c index fefab44..cd830e7 100644 --- a/src/smf/packet-smf.c +++ b/src/smf/packet-smf.c @@ -2129,12 +2129,6 @@ static int dissect_smf_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, static void try_load_smf_subdissection_uat(void) { if (!smf_subdissection_uat_loaded) { - char* err_p; - gboolean rc = uat_load(smf_subdissection_uat,NULL,&err_p); - if (!rc) { - g_print("uat_load failed: %s\n", err_p); - } - else { const smf_subdissection_uat_entry_t* subdissector = get_subdissector_from_uat(default_subdissector_uat_topic); if (subdissector == NULL) { smf_subdissection_uat_entry_t initial_rec = { @@ -2151,7 +2145,6 @@ static void try_load_smf_subdissection_uat(void) smf_subdissection_uat_loaded = 1; } } -} void proto_register_smf(void) {