From c5259e656e1535e6b8e5bcada85901e67bdceefb Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Sun, 5 Oct 2008 02:32:03 +0000 Subject: 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 --- src/config.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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: { -- cgit