Module: kamailio
Branch: master
Commit: 5a40d1ef1b484c4fc437a3f0183a101241e80313
URL:
https://github.com/kamailio/kamailio/commit/5a40d1ef1b484c4fc437a3f0183a101…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2024-01-10T10:06:05+01:00
http_async_client: exit mod_init if tm is not loaded
---
Modified: src/modules/http_async_client/http_async_client_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5a40d1ef1b484c4fc437a3f0183a101…
Patch:
https://github.com/kamailio/kamailio/commit/5a40d1ef1b484c4fc437a3f0183a101…
---
diff --git a/src/modules/http_async_client/http_async_client_mod.c
b/src/modules/http_async_client/http_async_client_mod.c
index 3064a5491d6..e9f6cb0d26b 100644
--- a/src/modules/http_async_client/http_async_client_mod.c
+++ b/src/modules/http_async_client/http_async_client_mod.c
@@ -295,7 +295,7 @@ static int mod_init(void)
if(load_tm_api(&tmb) < 0) {
LM_INFO("cannot load the TM-functions - async relay disabled\n");
- memset(&tmb, 0, sizeof(tm_api_t));
+ return -1;
}
/* allocate workers array */