- (multiple?) IPv6 listen blocks could cause a crash in config parser. Reported by Robby22

().
This commit is contained in:
Bram Matthys 2006-05-04 12:08:59 +00:00
parent 6a2e196acf
commit 6b6933c1b9
2 changed files with 4 additions and 2 deletions

View file

@ -1165,3 +1165,5 @@
is needed anymore (#0002896).
- set::ssl::egd does not require a parameter per-se (bug caused few days ago), reported
by Trocotronic (#0002899).
- (multiple?) IPv6 listen blocks could cause a crash in config parser. Reported by Robby22
(#0002868).

View file

@ -345,7 +345,7 @@ int inetport(aClient *cptr, char *name, int port)
{
static struct SOCKADDR_IN server;
int ad[4], len = sizeof(server);
char ipname[20];
char ipname[64];
if (BadPtr(name))
name = "*";
@ -363,7 +363,7 @@ int inetport(aClient *cptr, char *name, int port)
if (*name == '*')
ircsprintf(ipname, "::");
else
ircsprintf(ipname, "%s", name);
strlcpy(ipname, name, sizeof(ipname));
#endif
if (cptr != &me)