version 1.347, 2019/01/23 21:50:56 |
version 1.348, 2019/01/24 02:34:52 |
|
|
/* Otherwise treat it as a list of permitted host:port */ |
/* Otherwise treat it as a list of permitted host:port */ |
for (i = 0; i < num_opens; i++) { |
for (i = 0; i < num_opens; i++) { |
oarg = arg = xstrdup(opens[i]); |
oarg = arg = xstrdup(opens[i]); |
|
ch = '\0'; |
host = hpdelim2(&arg, &ch); |
host = hpdelim2(&arg, &ch); |
if (host == NULL || ch == '/') |
if (host == NULL || ch == '/') |
fatal("%s: missing host in %s", __func__, what); |
fatal("%s: missing host in %s", __func__, what); |
|
|
const char *filename, int linenum, int *activep, |
const char *filename, int linenum, int *activep, |
struct connection_info *connectinfo) |
struct connection_info *connectinfo) |
{ |
{ |
char *cp, ***chararrayptr, **charptr, *arg, *arg2, *p; |
char ch, *cp, ***chararrayptr, **charptr, *arg, *arg2, *p; |
int cmdline = 0, *intptr, value, value2, n, port; |
int cmdline = 0, *intptr, value, value2, n, port; |
SyslogFacility *log_facility_ptr; |
SyslogFacility *log_facility_ptr; |
LogLevel *log_level_ptr; |
LogLevel *log_level_ptr; |
|
|
port = 0; |
port = 0; |
p = arg; |
p = arg; |
} else { |
} else { |
char ch; |
|
arg2 = NULL; |
arg2 = NULL; |
|
ch = '\0'; |
p = hpdelim2(&arg, &ch); |
p = hpdelim2(&arg, &ch); |
if (p == NULL || ch == '/') |
if (p == NULL || ch == '/') |
fatal("%s line %d: bad address:port usage", |
fatal("%s line %d: bad address:port usage", |
|
|
*/ |
*/ |
xasprintf(&arg2, "*:%s", arg); |
xasprintf(&arg2, "*:%s", arg); |
} else { |
} else { |
char ch; |
|
|
|
arg2 = xstrdup(arg); |
arg2 = xstrdup(arg); |
|
ch = '\0'; |
p = hpdelim2(&arg, &ch); |
p = hpdelim2(&arg, &ch); |
if (p == NULL || ch == '/') { |
if (p == NULL || ch == '/') { |
fatal("%s line %d: missing host in %s", |
fatal("%s line %d: missing host in %s", |