Fixed bug in ipv6 + unknown connection flood.

This commit is contained in:
Bram Matthys 2003-02-03 17:27:21 +00:00
parent 7e3664afe5
commit 19960bf7de
2 changed files with 2 additions and 1 deletions

View file

@ -1858,3 +1858,4 @@ seen. gmtime warning still there
- Added (optional) class::recvq so you can dynamically/per class set the recvq (flood control).
CLIENT_FLOOD in config.h is used as a default value if recvq is not specified.
- Bugfix for crash with STRIPBADWORDS_CHAN_ALWAYS.
- Fixed bug in ipv6 + unknown connection flood.

View file

@ -161,7 +161,7 @@ void ban_flooder(aClient *cptr)
NULL /*8 reason */
};
strlcpy(hostip, (char *)inetntoa((char *)&cptr->ip), sizeof(hostip));
strlcpy(hostip, Inet_ia2p(&cptr->ip), sizeof(hostip));
tkllayer[4] = hostip;
tkllayer[5] = me.name;