mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 23:45:12 -04:00
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 MFC after: 1 month
This commit is contained in:
parent
88640c0e8b
commit
bd24e861b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue