summaryrefslogtreecommitdiffhomepage
path: root/src/acl.c
diff options
context:
space:
mode:
authorxiejianjun <xiejianjun@bytedance.com>2020-05-09 11:45:30 +0800
committerrofl0r <rofl0r@users.noreply.github.com>2020-07-06 11:37:35 +0100
commitdb4bd162a3472205fb847a52948c1133e65bd9ce (patch)
tree3ed895ae0cba11d9da645fa7a7a3a1f56925bfe4 /src/acl.c
parentd98aabf47f43289f9e66230b3c70a9d682c7865c (diff)
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.
Diffstat (limited to 'src/acl.c')
-rw-r--r--src/acl.c2
1 files changed, 1 insertions, 1 deletions
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;