[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2.11.2

On Fri, Jun 13, 2008 at 08:30:49PM +0200, Piotr KUCHARSKI wrote:
> 	http://ftp.irc.org/ftp/irc/server/irc2.11.2.tgz


That's what I get for not testing other people code. :(
IP hash is broken, here's the patch:

@@ -1246,7 +1246,7 @@ anUser    *hash_find_ip(char *ip, anUser *u
        for (tmp = (anUser *)tmp3->list; tmp; prv = tmp, tmp = tmp->iphnext)
-               if (hv == tmp->iphashv && !mycmp(ip, tmp->host))
+               if (hv == tmp->iphashv && !mycmp(ip, tmp->sip))
                        return (tmp);

Or you can #undef YLINE_LIMITS_IPHASH and recompile.

And yes, that means local/global limits basically don't work. :(

Sorry for that. I removed irc2.11.2.tgz -- I have to think, whether I may
upload fixed version or have to release 2.11.2p1.


I code, therefore I break things.