Browse code

permissions: don't remove old data at the end of the reload process

Victor Seva authored on 04/11/2021 13:34:47
Showing 1 changed files
... ...
@@ -59,7 +59,6 @@ int reload_trusted_table(void)
59 59
 	db_val_t* val;
60 60
 
61 61
 	struct trusted_list **new_hash_table;
62
-	struct trusted_list **old_hash_table;
63 62
 	int i;
64 63
 	int priority;
65 64
 
... ...
@@ -160,9 +159,7 @@ int reload_trusted_table(void)
160 159
 
161 160
 	perm_dbf.free_result(perm_db_handle, res);
162 161
 
163
-	old_hash_table = *perm_trust_table;
164 162
 	*perm_trust_table = new_hash_table;
165
-	empty_hash_table(old_hash_table);
166 163
 
167 164
 	LM_DBG("trusted table reloaded successfully.\n");
168 165