Skip to content

Commit

Permalink
Duplicate uat_load
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ngdavid1013 authored and RagnarPaulson committed Apr 30, 2024
1 parent f966db1 commit a70c991
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/smf/packet-smf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -2151,7 +2145,6 @@ static void try_load_smf_subdissection_uat(void)
smf_subdissection_uat_loaded = 1;
}
}
}

void proto_register_smf(void)
{
Expand Down

0 comments on commit a70c991

Please sign in to comment.