From 147e14356d158d94e43aa9764acfc7496f3a30ad Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 6 May 2010 10:52:40 +0000 Subject: [PATCH] Major bug fix (reported by Thierry Zoller) --- doc/THANKS | 3 +++ lib/request/connect.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/THANKS b/doc/THANKS index 85c6fb5bb..a00b01e37 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -307,6 +307,9 @@ Anthony Zboralski for reporting a few minor bugs for donating to sqlmap development +Thierry Zoller + for reporting a couple of major bugs + fufuh for reporting a bug when running on Windows diff --git a/lib/request/connect.py b/lib/request/connect.py index 8f27ce237..0870a8cde 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -146,8 +146,6 @@ class Connect: conf.redirectHandled = True - return Connect.__getPageProxy(**kwargs) - # Reset the number of connection retries conf.retriesCount = 0 @@ -207,7 +205,9 @@ class Connect: warnMsg = "connection timed out while trying " warnMsg += "to get error page information (%d)" % e.code logger.warn(warnMsg) + return None, None + code = e.code status = e.msg