Fix an IPv6 support bug that prevents an IPv6 server from properly
[ircu2.10.12-pk.git] / ircd / s_conf.c
index 6b60d7fe544472a4ceb159bf05f7d8066d42f5e9..9b216653da47378c21b92b1a143ce5ceb068c4d8 100644 (file)
@@ -606,7 +606,7 @@ struct ConfItem* find_conf_byip(struct SLink* lp, const struct irc_in_addr* ip,
   for (; lp; lp = lp->next) {
     tmp = lp->value.aconf;
     if (0 != (tmp->status & statmask)
-        && 0 == memcmp(&tmp->address.addr, ip, sizeof(*ip)))
+        && !irc_in_addr_cmp(&tmp->address.addr, ip))
       return tmp;
   }
   return 0;