Add a 'just in case' error case to acl checking

This commit is contained in:
Alex Young
2012-07-13 10:16:44 +01:00
parent 2f24d02a8f
commit 00e912d0a6

View File

@@ -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_address1 = (unsigned char*) &test->v6.sin6_addr;
raw_address2 = (unsigned char*) &entry->ip.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); debug("testbits=%d", entry->mask);