git: ade910f43b70 - stable/12 - jail: Don't allow substitution of valueless jail parameters. PR: 256544 Reported by: cryptogranny at gmail.com
Jamie Gritton
jamie at FreeBSD.org
Thu Jun 24 17:53:35 UTC 2021
The branch stable/12 has been updated by jamie:
URL: https://cgit.FreeBSD.org/src/commit/?id=ade910f43b70b0ced99a2c31bd965a5637caf320
commit ade910f43b70b0ced99a2c31bd965a5637caf320
Author: Jamie Gritton <jamie at FreeBSD.org>
AuthorDate: 2021-06-18 16:44:37 +0000
Commit: Jamie Gritton <jamie at FreeBSD.org>
CommitDate: 2021-06-24 17:53:24 +0000
jail: Don't allow substitution of valueless jail parameters.
PR: 256544
Reported by: cryptogranny at gmail.com
(cherry picked from commit 5bf6dca2c6dbf63d382e97905e205ded3e8525d2)
---
usr.sbin/jail/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/jail/config.c b/usr.sbin/jail/config.c
index a54127950206..4a37ee9fbecf 100644
--- a/usr.sbin/jail/config.c
+++ b/usr.sbin/jail/config.c
@@ -198,7 +198,7 @@ load_config(void)
TAILQ_FOREACH(vp, &j->params, tq)
if (!strcmp(vp->name, v->name))
break;
- if (!vp) {
+ if (!vp || TAILQ_EMPTY(&vp->val)) {
jail_warnx(j,
"%s: variable \"%s\" not found",
p->name, v->name);
More information about the dev-commits-src-all
mailing list