Browse code

permissions: fix crash if load_backends parameter is 1

fixes #2151

(cherry picked from commit d7f4493da751802dc47a694d251d34a85a7b3bf1)

Victor Seva authored on 03/12/2019 11:12:54 • Daniel-Constantin Mierla committed on 12/08/2020 22:39:08
Showing 1 changed files
... ...
@@ -648,8 +648,10 @@ static int mod_init(void)
648 648
 
649 649
 static int child_init(int rank)
650 650
 {
651
-	if (init_child_trusted(rank) == -1)
652
-		return -1;
651
+	if(_perm_load_backends&PERM_LOAD_TRUSTEDDB) {
652
+		if(init_child_trusted(rank) == -1)
653
+			return -1;
654
+	}
653 655
 	return 0;
654 656
 }
655 657