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:
Jamie Gritton 2012-10-04 18:59:46 +00:00
parent e9472a9f88
commit 01591cd540
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241196

View File

@ -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))