diff options
author | David Shanks <dshanks01@verizon.net> | 2010-01-11 19:40:45 -0800 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-01-14 07:46:31 +0100 |
commit | 184d07e47cde7e2db64507c46d4bf7f4a59f5939 (patch) | |
tree | 96101390d70d7c6b29736352c09313092a1f05fa /src | |
parent | 8963c84dad0672dd6b04f903e9147282f769b396 (diff) | |
download | tinyproxy-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |