summaryrefslogtreecommitdiff
path: root/access.c
diff options
context:
space:
mode:
Diffstat (limited to 'access.c')
-rw-r--r--access.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/access.c b/access.c
index f1a8bd75..046d5e31 100644
--- a/access.c
+++ b/access.c
@@ -86,6 +86,9 @@ static int access_match(char *list, char *addr, char *host)
if (!list2) out_of_memory("access_match");
+ strlower(list2);
+ if (host) strlower(host);
+
for (tok=strtok(list2," ,\t"); tok; tok=strtok(NULL," ,\t")) {
if (match_hostname(host, tok) || match_address(addr, tok)) {
free(list2);