[sr-dev] git:master:f1e2e12e: core: print error messages when exceeding max size for kemi modules
Daniel-Constantin Mierla
miconda at gmail.com
Mon Apr 24 20:56:40 CEST 2017
Module: kamailio
Branch: master
Commit: f1e2e12e10d5926499e0734adbf6674802f867bd
URL: https://github.com/kamailio/kamailio/commit/f1e2e12e10d5926499e0734adbf6674802f867bd
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/f1e2e12e10d5926499e0734adbf6674802f867bd.diff
Patch: https://github.com/kamailio/kamailio/commit/f1e2e12e10d5926499e0734adbf6674802f867bd.patch
---
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) {
More information about the sr-dev
mailing list