From 00e912d0a620d6e116bc0bbfff092dc9d81e6b5c Mon Sep 17 00:00:00 2001 From: Alex Young Date: Fri, 13 Jul 2012 10:16:44 +0100 Subject: [PATCH] Add a 'just in case' error case to acl checking --- src/acl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/acl.c b/src/acl.c index 587263d..f47a35d 100644 --- a/src/acl.c +++ b/src/acl.c @@ -49,6 +49,9 @@ static int is_included_in_acl(int list_length, struct ip_and_mask (*list)[], uni raw_address1 = (unsigned char*) &test->v6.sin6_addr; raw_address2 = (unsigned char*) &entry->ip.v6.sin6_addr; } + else { + fatal( "Can't check an ACL for this address type." ); + } debug("testbits=%d", entry->mask);