Module: kamailio
Branch: master
Commit: fae3611c873738d42a979d96e0d0b47af726bc47
URL:
https://github.com/kamailio/kamailio/commit/fae3611c873738d42a979d96e0d0b47…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2021-11-15T10:35:54+01:00
permissions: don't remove old data at the end of the reload process
---
Modified: src/modules/permissions/trusted.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fae3611c873738d42a979d96e0d0b47…
Patch:
https://github.com/kamailio/kamailio/commit/fae3611c873738d42a979d96e0d0b47…
---
diff --git a/src/modules/permissions/trusted.c b/src/modules/permissions/trusted.c
index 2f9c7d42a4..7714a32461 100644
--- a/src/modules/permissions/trusted.c
+++ b/src/modules/permissions/trusted.c
@@ -59,7 +59,6 @@ int reload_trusted_table(void)
db_val_t* val;
struct trusted_list **new_hash_table;
- struct trusted_list **old_hash_table;
int i;
int priority;
@@ -160,9 +159,7 @@ int reload_trusted_table(void)
perm_dbf.free_result(perm_db_handle, res);
- old_hash_table = *perm_trust_table;
*perm_trust_table = new_hash_table;
- empty_hash_table(old_hash_table);
LM_DBG("trusted table reloaded successfully.\n");