mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 12:02:52 +00:00
Fix a buffer overflow when initializing the random salt for "+x"
This "off by one" buffer overflow has been introduced in commit 49385a98
,
"Implemented hashed cloaked hostnames for +x".
This commit is contained in:
parent
0709a0f050
commit
d48e440a72
@ -653,7 +653,7 @@ static void
|
||||
Set_Defaults(bool InitServers)
|
||||
{
|
||||
int i;
|
||||
char random[RANDOM_SALT_LEN];
|
||||
char random[RANDOM_SALT_LEN + 1];
|
||||
|
||||
/* Global */
|
||||
strcpy(Conf_ServerName, "");
|
||||
|
Loading…
Reference in New Issue
Block a user