Move properly to the next parameter when jailparam_init fails
(i.e. on an unknown parameter), to avoid freeing bogus pointers.
This commit is contained in:
parent
e9472a9f88
commit
01591cd540
@ -690,6 +690,7 @@ import_params(struct cfjail *j)
|
||||
if (jailparam_init(jp, p->name) < 0) {
|
||||
error = -1;
|
||||
jail_warnx(j, "%s", jail_errmsg);
|
||||
jp++;
|
||||
continue;
|
||||
}
|
||||
if (TAILQ_EMPTY(&p->val))
|
||||
|
Loading…
x
Reference in New Issue
Block a user