1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 06:56:40 +02:00

Fixed run-time segfault due to incorrect handling of DT_NORELOAD.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1421 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-05 02:32:03 +00:00
parent 2726877999
commit c5259e656e
+4 -4
View File
@@ -584,8 +584,8 @@ int ServerConfig::Read(bool bail)
dt &= ~DT_ALLOW_NEWLINE;
dt &= ~DT_ALLOW_WILD;
dt &= ~DT_NORELOAD;
// If the value is set to not allow reloading and we are reloading (bail will be false), skip the item
if (noreload && !bail)
// If the value is set to not allow reloading and we are reloading (bail will be true), skip the item
if (noreload && bail)
continue;
ConfValue(config_data, Values[Index].tag, Values[Index].value, Values[Index].default_value, 0, item, BUFSIZE, allow_newlines);
ValueItem vi(item);
@@ -665,8 +665,8 @@ int ServerConfig::Read(bool bail)
dt &= ~DT_ALLOW_NEWLINE;
dt &= ~DT_ALLOW_WILD;
dt &= ~DT_NORELOAD;
// If the value is set to not allow reloading and we are reloading (bail will be false), skip the item
if (noreload && !bail)
// If the value is set to not allow reloading and we are reloading (bail will be true), skip the item
if (noreload && bail)
continue;
switch (dt) {
case DT_NOSPACES: {