version 1.312, 2017/10/02 19:33:20 |
version 1.313, 2017/10/04 18:49:30 |
|
|
if (!arg || *arg == '\0') |
if (!arg || *arg == '\0') |
fatal("%s line %d: missing PermitOpen specification", |
fatal("%s line %d: missing PermitOpen specification", |
filename, linenum); |
filename, linenum); |
i = options->num_permitted_opens; /* modified later */ |
value = options->num_permitted_opens; /* modified later */ |
if (strcmp(arg, "any") == 0 || strcmp(arg, "none") == 0) { |
if (strcmp(arg, "any") == 0 || strcmp(arg, "none") == 0) { |
if (*activep && i == 0) { |
if (*activep && value == 0) { |
options->num_permitted_opens = 1; |
options->num_permitted_opens = 1; |
options->permitted_opens = xcalloc(1, |
options->permitted_opens = xcalloc(1, |
sizeof(*options->permitted_opens)); |
sizeof(*options->permitted_opens)); |
|
|
if (arg == NULL || ((port = permitopen_port(arg)) < 0)) |
if (arg == NULL || ((port = permitopen_port(arg)) < 0)) |
fatal("%s line %d: bad port number in " |
fatal("%s line %d: bad port number in " |
"PermitOpen", filename, linenum); |
"PermitOpen", filename, linenum); |
if (*activep && i == 0) { |
if (*activep && value == 0) { |
options->permitted_opens = xrecallocarray( |
options->permitted_opens = xrecallocarray( |
options->permitted_opens, |
options->permitted_opens, |
options->num_permitted_opens, |
options->num_permitted_opens, |