Skip to content

Commit

Permalink
core: print error messages when exceeding max size for kemi modules
Browse files Browse the repository at this point in the history
(cherry picked from commit f1e2e12)
  • Loading branch information
miconda committed Jun 12, 2017
1 parent 368fee2 commit 1413589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/kemi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1413589

Please sign in to comment.