svn commit: r344195 - stable/11/usr.sbin/jail
Eugene Grosbein
eugen at FreeBSD.org
Sat Feb 16 00:40:05 UTC 2019
Author: eugen
Date: Sat Feb 16 00:40:03 2019
New Revision: 344195
URL: https://svnweb.freebsd.org/changeset/base/344195
Log:
MFC r343112: jail(8): stop crashing with SIGSEGV inside run_command()
function while processing not entirely correct jail.conf(5) file
having something like "ip4.addr = 127.0.0.1;" and no "ip4 = ...;"
so extrap variable stays NULL.
Reported by: marck
Modified:
stable/11/usr.sbin/jail/command.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/jail/command.c
==============================================================================
--- stable/11/usr.sbin/jail/command.c Sat Feb 16 00:38:25 2019 (r344194)
+++ stable/11/usr.sbin/jail/command.c Sat Feb 16 00:40:03 2019 (r344195)
@@ -374,7 +374,7 @@ run_command(struct cfjail *j)
argc = 4;
}
- if (!down) {
+ if (!down && extrap != NULL) {
for (cs = strtok(extrap, " "); cs;
cs = strtok(NULL, " ")) {
size_t len = strlen(cs) + 1;
More information about the svn-src-stable-11
mailing list