summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Shanks <dshanks01@verizon.net>2010-01-11 19:40:45 -0800
committerMichael Adam <obnox@samba.org>2010-01-14 07:46:31 +0100
commit184d07e47cde7e2db64507c46d4bf7f4a59f5939 (patch)
tree96101390d70d7c6b29736352c09313092a1f05fa /src
parent8963c84dad0672dd6b04f903e9147282f769b396 (diff)
downloadtinyproxy-184d07e47cde7e2db64507c46d4bf7f4a59f5939.tar.gz
tinyproxy-184d07e47cde7e2db64507c46d4bf7f4a59f5939.zip
check_numeric_acl() should return -1 when IPs don't match.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acl.c b/src/acl.c
index 4efc82a..6fa70e9 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -292,7 +292,7 @@ static int check_numeric_acl (const struct acl_s *acl, const char *ip)
/* If x and y don't match, the IP addresses don't match */
if (x != y)
- return 0;
+ return -1;
}
/* The addresses match, return the permission */