mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-13 13:41:37 +01:00
- #0003313 reported by Stealth, regarding not erroring/warning when me::name
is bigger than HOSTLEN, from now it will error on config read. [Backport, sts]
This commit is contained in:
parent
c20f785012
commit
693b5634d5
2 changed files with 9 additions and 0 deletions
2
Changes
2
Changes
|
@ -1667,3 +1667,5 @@
|
|||
[Backport, only slightly modified for speed]
|
||||
- #0001924 - requested by syzop: Added ./unreal gencloak, which generates
|
||||
random keys 10 ~ 20 characters in length (*NIX only). [Backport, aquanight]
|
||||
- #0003313 reported by Stealth, regarding not erroring/warning when me::name
|
||||
is bigger than HOSTLEN, from now it will error on config read. [Backport, sts]
|
||||
|
|
|
@ -3128,6 +3128,13 @@ int _test_me(ConfigFile *conf, ConfigEntry *ce)
|
|||
cep->ce_varlinenum);
|
||||
errors++;
|
||||
}
|
||||
if (strlen(cep->ce_vardata) > HOSTLEN)
|
||||
{
|
||||
config_error("%s:%i: illegal me::name, must be less or equal to %i characters",
|
||||
cep->ce_fileptr->cf_filename,
|
||||
cep->ce_varlinenum, HOSTLEN);
|
||||
errors++;
|
||||
}
|
||||
}
|
||||
/* me::info */
|
||||
else if (!strcmp(cep->ce_varname, "info"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue