jail: fix a NULL pointer derefence in parsing ip6.addr settings.
This is the counterpart to bd24e861b4
, which did the same for ip4.
PR: 268377
Reported by: ahkithaama at proton.me
This commit is contained in:
parent
ac4e3a27ab
commit
e8d7ae918a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user