1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 18:53:12 +02:00

- Fixed a set::modes-on-join bug and fixed an oob read in config parser.

(1st=someone forgot a bzero)
This commit is contained in:
Bram Matthys
2003-04-05 21:16:21 +00:00
parent c1dd98ece4
commit 629d0d59f7
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -2006,3 +2006,4 @@ seen. gmtime warning still there
by |VIO|Maverick and Rocko
- Made throttling use DelListItem and fixed some confusing regarding
undeffing of THROTTLING
- Fixed a set::modes-on-join bug and fixed an oob read in config parser.
+2 -1
View File
@@ -930,7 +930,7 @@ static ConfigFile *config_parse(char *filename, char *confdata)
start = ptr;
for(;*ptr;ptr++)
{
if ((*ptr == ' ') || (*ptr == '=') || (*ptr == '\t') || (*ptr == '\n') || (*ptr == ';'))
if ((*ptr == ' ') || (*ptr == '=') || (*ptr == '\t') || (*ptr == '\n') || (*ptr == ';') || (*ptr == '\0'))
break;
}
if (!*ptr)
@@ -5194,6 +5194,7 @@ int _test_set(ConfigFile *conf, ConfigEntry *ce)
else if (!strcmp(cep->ce_varname, "modes-on-join")) {
char *c;
struct ChMode temp;
bzero(&temp, sizeof(temp));
CheckNull(cep);
for (c = cep->ce_vardata; *c; c++)
{