]> jfr.im git - solanum.git/commitdiff
newconf: fix check for IPv6 address length
authorElizabeth Myers <redacted>
Mon, 28 Mar 2016 22:47:13 +0000 (17:47 -0500)
committerElizabeth Myers <redacted>
Mon, 28 Mar 2016 22:47:13 +0000 (17:47 -0500)
ircd/newconf.c

index 3a0ba66d73a69805f9ba76a8b3ce6849e2a17835..5f75ed5c5bd373d662eb5c0ab559a9b9620b9083 100644 (file)
@@ -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)