mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-06 10:15:24 +01:00
- (multiple?) IPv6 listen blocks could cause a crash in config parser. Reported by Robby22
(#0002868).
This commit is contained in:
parent
6a2e196acf
commit
6b6933c1b9
2 changed files with 4 additions and 2 deletions
2
Changes
2
Changes
|
@ -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).
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue