fix check_acl compilation with --enable-debug

regression introduced in f6d4da5d81.
this has been overlooked due to the assert macro being optimized out in
non-debug builds.
This commit is contained in:
xiejianjun 2020-05-09 11:45:30 +08:00 committed by rofl0r
parent d98aabf47f
commit db4bd162a3

View File

@ -344,7 +344,7 @@ int check_acl (const char *ip, union sockaddr_union *addr, vector_t access_list)
char string_addr[HOSTNAME_LENGTH]; char string_addr[HOSTNAME_LENGTH];
assert (ip != NULL); assert (ip != NULL);
assert (host != NULL); assert (addr != NULL);
string_addr[0] = 0; string_addr[0] = 0;