From 558f3894f45499b7c1c3b772bdc0a4252ad7aa40 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sat, 15 Jan 2011 23:20:52 +0000 Subject: [PATCH] Minor improvement --- lib/core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 0cdeb6dce..81a335846 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1945,9 +1945,9 @@ def initTechnique(technique=None): # Restoring stored conf options for key, value in kb.injection.conf.items(): - if value: + if value and (not hasattr(conf, key) or (hasattr(conf, key) and getattr(conf, key) in ("", None))): setattr(conf, key, value) - debugMsg = "restoring configuration option '%s' (%s)" % (key, value) + debugMsg = "resuming configuration option '%s' (%s)" % (key, value) logger.debug(debugMsg) else: warnMsg = "there is no injection data available for technique "