1
0
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:
stskeeps
2007-04-24 11:36:33 +00:00
parent 7e6ca53e67
commit cf6965e9e2
2 changed files with 15 additions and 0 deletions
+3
View File
@@ -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.
+12
View File
@@ -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"))
{