[sr-dev] git:master:d7f4493d: permissions: fix crash if load_backends parameter is 1
Victor Seva
linuxmaniac at torreviejawireless.org
Tue Dec 3 12:17:55 CET 2019
Module: kamailio
Branch: master
Commit: d7f4493da751802dc47a694d251d34a85a7b3bf1
URL: https://github.com/kamailio/kamailio/commit/d7f4493da751802dc47a694d251d34a85a7b3bf1
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2019-12-03T12:12:54+01:00
permissions: fix crash if load_backends parameter is 1
fixes #2151
---
Modified: src/modules/permissions/permissions.c
---
Diff: https://github.com/kamailio/kamailio/commit/d7f4493da751802dc47a694d251d34a85a7b3bf1.diff
Patch: https://github.com/kamailio/kamailio/commit/d7f4493da751802dc47a694d251d34a85a7b3bf1.patch
---
diff --git a/src/modules/permissions/permissions.c b/src/modules/permissions/permissions.c
index 7505bb3dd1..30637380d4 100644
--- a/src/modules/permissions/permissions.c
+++ b/src/modules/permissions/permissions.c
@@ -648,8 +648,10 @@ static int mod_init(void)
static int child_init(int rank)
{
- if (init_child_trusted(rank) == -1)
- return -1;
+ if(_perm_load_backends&PERM_LOAD_TRUSTEDDB) {
+ if(init_child_trusted(rank) == -1)
+ return -1;
+ }
return 0;
}
More information about the sr-dev
mailing list