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:
Jamie Gritton 2022-12-14 16:47:55 -08:00
parent ac4e3a27ab
commit e8d7ae918a

View File

@ -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;