Module: kamailio
Branch: 5.4
Commit: 30b33f772739c593f1b58a2b871e127effd12f58
URL:
https://github.com/kamailio/kamailio/commit/30b33f772739c593f1b58a2b871e127…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-06-01T11:12:37+02:00
async: safety check for async ms list
(cherry picked from commit 5b0e74c1832d2d09fe36424e1e1aaaacde920b31)
(cherry picked from commit 93dc038f3f1f854b1e0987ec28e49d8a70293e19)
---
Modified: src/modules/async/async_sleep.c
---
Diff:
https://github.com/kamailio/kamailio/commit/30b33f772739c593f1b58a2b871e127…
Patch:
https://github.com/kamailio/kamailio/commit/30b33f772739c593f1b58a2b871e127…
---
diff --git a/src/modules/async/async_sleep.c b/src/modules/async/async_sleep.c
index 1e81d3318c..bd17b0e1d9 100644
--- a/src/modules/async/async_sleep.c
+++ b/src/modules/async/async_sleep.c
@@ -370,6 +370,10 @@ int async_ms_sleep(sip_msg_t *msg, int milliseconds, cfg_action_t
*act, str *cbn
async_task_param_t *atp;
async_task_t *at;
+ if (_async_ms_list==NULL) {
+ LM_ERR("async timer list not initialized - check modparams\n");
+ return -1;
+ }
if(milliseconds <= 0) {
LM_ERR("negative or zero sleep time (%d)\n", milliseconds);
return -1;