Module: kamailio
Branch: master
Commit: c6c5a4e2a1e963b7f7a044a51f4e9f8812a83bd5
URL:
https://github.com/kamailio/kamailio/commit/c6c5a4e2a1e963b7f7a044a51f4e9f8…
Author: Joey Golan <joeygo(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-12-07T14:21:57+01:00
imc: destroy db only if db_mode is not 0
---
Modified: src/modules/imc/imc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c6c5a4e2a1e963b7f7a044a51f4e9f8…
Patch:
https://github.com/kamailio/kamailio/commit/c6c5a4e2a1e963b7f7a044a51f4e9f8…
---
diff --git a/src/modules/imc/imc.c b/src/modules/imc/imc.c
index 14989e6757..e920873165 100644
--- a/src/modules/imc/imc.c
+++ b/src/modules/imc/imc.c
@@ -469,6 +469,9 @@ static void destroy(void)
db_key_t rq_cols[4];
db_val_t rq_vals[4];
+ if (db_mode == 0)
+ goto done;
+
if(imc_db==NULL)
goto done;