From 835d456c648e15e63c897f0942f19ebad3041ff7 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Mon, 28 Mar 2016 17:47:13 -0500 Subject: [PATCH] newconf: fix check for IPv6 address length --- ircd/newconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/newconf.c b/ircd/newconf.c index 3a0ba66d..5f75ed5c 100644 --- a/ircd/newconf.c +++ b/ircd/newconf.c @@ -1969,7 +1969,7 @@ conf_set_blacklist_reason(void *data) if (yy_blacklist_host && data) { yy_blacklist_reason = rb_strdup(data); - if (yy_blacklist_iptype & IPTYPE_IPV4) + if (yy_blacklist_iptype & IPTYPE_IPV6) { /* Make sure things fit (64 = alnum count + dots) */ if ((64 + strlen(yy_blacklist_host)) > IRCD_RES_HOSTLEN)