version 1.332, 2018/06/09 03:03:10 |
version 1.333, 2018/06/19 02:59:41 |
|
|
break; |
break; |
} |
} |
for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) { |
for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) { |
arg2 = xstrdup(arg); |
if (opcode == sPermitListen && |
p = hpdelim(&arg); |
strchr(arg, ':') == NULL) { |
/* XXX support bare port number for PermitListen */ |
/* |
if (p == NULL) { |
* Allow bare port number for PermitListen |
fatal("%s line %d: missing host in %s", |
* to indicate a wildcard listen host. |
filename, linenum, |
*/ |
lookup_opcode_name(opcode)); |
xasprintf(&arg2, "*:%s", arg); |
|
} else { |
|
arg2 = xstrdup(arg); |
|
p = hpdelim(&arg); |
|
if (p == NULL) { |
|
fatal("%s line %d: missing host in %s", |
|
filename, linenum, |
|
lookup_opcode_name(opcode)); |
|
} |
|
p = cleanhostname(p); |
} |
} |
p = cleanhostname(p); |
|
if (arg == NULL || |
if (arg == NULL || |
((port = permitopen_port(arg)) < 0)) { |
((port = permitopen_port(arg)) < 0)) { |
fatal("%s line %d: bad port number in %s", |
fatal("%s line %d: bad port number in %s", |