FreeBSD Bugzilla – Attachment 225808 Details for
Bug 256544
jail crashes on config parsing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't allow substitution of value-less parameters.
config.diff (text/plain), 437 bytes, created by
Jamie Gritton
on 2021-06-14 19:24:55 UTC
(
hide
)
Description:
Don't allow substitution of value-less parameters.
Filename:
MIME Type:
Creator:
Jamie Gritton
Created:
2021-06-14 19:24:55 UTC
Size:
437 bytes
patch
obsolete
>diff --git a/usr.sbin/jail/config.c b/usr.sbin/jail/config.c >index e6ebc585bcd7..4cf28820452a 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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256544
: 225808