summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:32:03 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-05 02:32:03 +0000
commitc5259e656e1535e6b8e5bcada85901e67bdceefb (patch)
tree1cc0a059cfbdc16a1d22af35f73addf14d0812c8 /src
parent2726877999b4660ca318b4e98ba2e60caeff3974 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index d8fcefe8b..34f66e211 100644
--- a/src/config.c
+++ b/src/config.c
@@ -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: {