version 1.350, 2019/03/25 22:33:44 |
version 1.351, 2019/04/18 18:56:16 |
|
|
return -1; |
return -1; |
} |
} |
if (strcasecmp(attrib, "user") == 0) { |
if (strcasecmp(attrib, "user") == 0) { |
if (ci == NULL) { |
if (ci == NULL || (ci->test && ci->user == NULL)) { |
result = 0; |
result = 0; |
continue; |
continue; |
} |
} |
|
|
debug("user %.100s matched 'User %.100s' at " |
debug("user %.100s matched 'User %.100s' at " |
"line %d", ci->user, arg, line); |
"line %d", ci->user, arg, line); |
} else if (strcasecmp(attrib, "group") == 0) { |
} else if (strcasecmp(attrib, "group") == 0) { |
if (ci == NULL) { |
if (ci == NULL || (ci->test && ci->user == NULL)) { |
result = 0; |
result = 0; |
continue; |
continue; |
} |
} |
|
|
result = 0; |
result = 0; |
} |
} |
} else if (strcasecmp(attrib, "host") == 0) { |
} else if (strcasecmp(attrib, "host") == 0) { |
if (ci == NULL) { |
if (ci == NULL || (ci->test && ci->host == NULL)) { |
result = 0; |
result = 0; |
continue; |
continue; |
} |
} |
|
|
debug("connection from %.100s matched 'Host " |
debug("connection from %.100s matched 'Host " |
"%.100s' at line %d", ci->host, arg, line); |
"%.100s' at line %d", ci->host, arg, line); |
} else if (strcasecmp(attrib, "address") == 0) { |
} else if (strcasecmp(attrib, "address") == 0) { |
if (ci == NULL) { |
if (ci == NULL || (ci->test && ci->address == NULL)) { |
result = 0; |
result = 0; |
continue; |
continue; |
} |
} |
|
|
return -1; |
return -1; |
} |
} |
} else if (strcasecmp(attrib, "localaddress") == 0){ |
} else if (strcasecmp(attrib, "localaddress") == 0){ |
if (ci == NULL) { |
if (ci == NULL || (ci->test && ci->laddress == NULL)) { |
result = 0; |
result = 0; |
continue; |
continue; |
} |
} |
|
|
arg); |
arg); |
return -1; |
return -1; |
} |
} |
if (ci == NULL) { |
if (ci == NULL || (ci->test && ci->lport == -1)) { |
result = 0; |
result = 0; |
continue; |
continue; |
} |
} |
|
|
else |
else |
result = 0; |
result = 0; |
} else if (strcasecmp(attrib, "rdomain") == 0) { |
} else if (strcasecmp(attrib, "rdomain") == 0) { |
if (ci == NULL || ci->rdomain == NULL) { |
if (ci == NULL || (ci->test && ci->rdomain == NULL)) { |
result = 0; |
result = 0; |
continue; |
continue; |
} |
} |
|
if (ci->rdomain == NULL) |
|
match_test_missing_fatal("RDomain", "rdomain"); |
if (match_pattern_list(ci->rdomain, arg, 0) != 1) |
if (match_pattern_list(ci->rdomain, arg, 0) != 1) |
result = 0; |
result = 0; |
else |
else |