From 712e238f3395cb34b6769987175d44e785ffe580 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 22 May 2011 10:29:25 +0000 Subject: [PATCH] another minor fix --- lib/request/connect.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 3164b7b15..82c2f5939 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -393,9 +393,6 @@ class Connect: if "forcibly closed" in tbMsg: logger.critical(warnMsg) return None, None - elif kb.testMode: - logger.warn(warnMsg) - return None, None elif silent or (ignoreTimeout and any(map(lambda x: x in tbMsg, ["timed out", "IncompleteRead"]))): return None, None elif threadData.retriesCount < conf.retries and not kb.threadException and not conf.realTest: @@ -429,6 +426,9 @@ class Connect: socket.setdefaulttimeout(conf.timeout) return Connect.__getPageProxy(**kwargs) + elif kb.testMode: + logger.warn(warnMsg) + return None, None else: socket.setdefaulttimeout(conf.timeout) raise sqlmapConnectionException, warnMsg