qssb_enable_policy: check for empty str instead of NULL ptr
This was missed in 0a851790b8bc0a91531e5347668fa9543884d9ba
Šī revīzija ir iekļauta:
vecāks
dbdb35db37
revīzija
763c65c3fe
2
qssb.h
2
qssb.h
@ -489,7 +489,7 @@ int qssb_enable_policy(struct qssb_policy *policy)
|
|||||||
|
|
||||||
if(policy->path_policies != NULL)
|
if(policy->path_policies != NULL)
|
||||||
{
|
{
|
||||||
if(policy->chroot_target_path == NULL)
|
if(*policy->chroot_target_path == '\0')
|
||||||
{
|
{
|
||||||
char random_str[17];
|
char random_str[17];
|
||||||
if(random_string(random_str, sizeof(random_str)) == 16)
|
if(random_string(random_str, sizeof(random_str)) == 16)
|
||||||
|
Notiek ielāde…
x
Atsaukties uz šo jaunā problēmā
Block a user