Module: kamailio
Branch: master
Commit: f1e2e12e10d5926499e0734adbf6674802f867bd
URL:
https://github.com/kamailio/kamailio/commit/f1e2e12e10d5926499e0734adbf6674…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-04-24T20:53:51+02:00
core: print error messages when exceeding max size for kemi modules
---
Modified: src/core/kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f1e2e12e10d5926499e0734adbf6674…
Patch:
https://github.com/kamailio/kamailio/commit/f1e2e12e10d5926499e0734adbf6674…
---
diff --git a/src/core/kemi.c b/src/core/kemi.c
index 86c08d5..28468de 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -778,6 +778,7 @@ static sr_kemi_module_t _sr_kemi_modules[SR_KEMI_MODULES_MAX_SIZE];
int sr_kemi_modules_add(sr_kemi_t *klist)
{
if(_sr_kemi_modules_size>=SR_KEMI_MODULES_MAX_SIZE) {
+ LM_ERR("exceeded max number of modules\n");
return -1;
}
if(_sr_kemi_modules_size==0) {