From 184d07e47cde7e2db64507c46d4bf7f4a59f5939 Mon Sep 17 00:00:00 2001 From: David Shanks Date: Mon, 11 Jan 2010 19:40:45 -0800 Subject: check_numeric_acl() should return -1 when IPs don't match. Signed-off-by: Michael Adam --- src/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3