- 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:
Bram Matthys 2008-08-19 13:09:49 +00:00
parent c20f785012
commit 693b5634d5
2 changed files with 9 additions and 0 deletions

View file

@ -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]

View file

@ -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"))