mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 16:23:12 +02:00
- #0003223 reported by JasonTik patched by WolfSage, regarding undocumented
max link pass length. This now -WARNS- when there is a password bigger than PASSWDLEN.
This commit is contained in:
@@ -1615,3 +1615,6 @@ MOTDs
|
||||
- Implemented #0002990, changing 432 into: /* 432 ERR_ERRONEUSNICKNAME */ ":%s 432 %s %s :%s",
|
||||
- #0002301 reported by vonitsanet patched by WolfSage, regarding adding oper
|
||||
username to /whois, visible if you are an oper
|
||||
- #0003223 reported by JasonTik patched by WolfSage, regarding undocumented
|
||||
max link pass length. This now -WARNS- when there is a password bigger
|
||||
than PASSWDLEN.
|
||||
|
||||
@@ -5941,6 +5941,12 @@ int _test_link(ConfigFile *conf, ConfigEntry *ce)
|
||||
continue;
|
||||
}
|
||||
has_passwordreceive = 1;
|
||||
if (strlen(cep->ce_vardata) > PASSWDLEN)
|
||||
{
|
||||
config_warn("%s:%i: link::password-receive cannot exceed %d characters in length",
|
||||
ce->ce_fileptr->cf_filename, ce->ce_varlinenum, PASSWDLEN);
|
||||
errors++;
|
||||
}
|
||||
if (Auth_CheckError(cep) < 0)
|
||||
errors++;
|
||||
}
|
||||
@@ -5959,6 +5965,12 @@ int _test_link(ConfigFile *conf, ConfigEntry *ce)
|
||||
ce->ce_fileptr->cf_filename, ce->ce_varlinenum);
|
||||
errors++;
|
||||
}
|
||||
if (strlen(cep->ce_vardata) > PASSWDLEN)
|
||||
{
|
||||
config_warn("%s:%i: link::password-connect cannot exceed %d characters in length",
|
||||
ce->ce_fileptr->cf_filename, ce->ce_varlinenum, PASSWDLEN);
|
||||
errors++;
|
||||
}
|
||||
}
|
||||
else if (!strcmp(cep->ce_varname, "class"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user