diff options
author | jamie <jamie@FreeBSD.org> | 2012-10-04 18:59:46 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2012-10-04 18:59:46 +0000 |
commit | 1b32102bdf4aa51f58e449687805d2a027d82f51 (patch) | |
tree | 7f0ecaa324cb8c5fbbc6bdea207c09758048aafc /usr.sbin | |
parent | 284641708a4092b8adc9f735e726bd9dba1fe0fe (diff) | |
download | FreeBSD-src-1b32102bdf4aa51f58e449687805d2a027d82f51.zip FreeBSD-src-1b32102bdf4aa51f58e449687805d2a027d82f51.tar.gz |
Move properly to the next parameter when jailparam_init fails
(i.e. on an unknown parameter), to avoid freeing bogus pointers.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/jail/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/jail/config.c b/usr.sbin/jail/config.c index ec96c0c..d0b7d26 100644 --- a/usr.sbin/jail/config.c +++ b/usr.sbin/jail/config.c @@ -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)) |