mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 17:17:19 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue