Date: Sun, 18 Dec 2022 00:32:24 GMT From: Jamie Gritton <jamie@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 47f21d91808c - stable/13 - jail: fix a NULL pointer derefence in parsing ip6.addr settings. Message-ID: <202212180032.2BI0WO5R031766@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jamie: URL: https://cgit.FreeBSD.org/src/commit/?id=47f21d91808c687e88f7f63930b73a893ce6d2a1 commit 47f21d91808c687e88f7f63930b73a893ce6d2a1 Author: Jamie Gritton <jamie@FreeBSD.org> AuthorDate: 2022-12-15 00:47:55 +0000 Commit: Jamie Gritton <jamie@FreeBSD.org> CommitDate: 2022-12-18 00:31:31 +0000 jail: fix a NULL pointer derefence in parsing ip6.addr settings. This is the counterpart to bd24e861b4ef, which did the same for ip4. PR: 268377 Reported by: ahkithaama at proton.me (cherry picked from commit e8d7ae918a105f252cf06249787d82f43e023ba8) --- usr.sbin/jail/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/jail/command.c b/usr.sbin/jail/command.c index c1d418d6cc69..6b23af25b01c 100644 --- a/usr.sbin/jail/command.c +++ b/usr.sbin/jail/command.c @@ -440,7 +440,7 @@ run_command(struct cfjail *j) } else argc = 4; - if (!down) { + if (!down && extrap != NULL) { for (cs = strtok(extrap, " "); cs; cs = strtok(NULL, " ")) { size_t len = strlen(cs) + 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212180032.2BI0WO5R031766>