From db4bd162a3472205fb847a52948c1133e65bd9ce Mon Sep 17 00:00:00 2001 From: xiejianjun Date: Sat, 9 May 2020 11:45:30 +0800 Subject: [PATCH] fix check_acl compilation with --enable-debug regression introduced in f6d4da5d81694721bf50b2275621e7ce84e6da30. this has been overlooked due to the assert macro being optimized out in non-debug builds. --- src/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acl.c b/src/acl.c index 7918a07..06c982b 100644 --- a/src/acl.c +++ b/src/acl.c @@ -344,7 +344,7 @@ int check_acl (const char *ip, union sockaddr_union *addr, vector_t access_list) char string_addr[HOSTNAME_LENGTH]; assert (ip != NULL); - assert (host != NULL); + assert (addr != NULL); string_addr[0] = 0;