From 8bf1650d65dfcfc7c1bef06b53ffc9a97ae901b9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 1 May 2021 11:39:42 +0200 Subject: [PATCH] Fixes #4664 --- lib/core/settings.py | 2 +- thirdparty/keepalive/keepalive.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 3d422ef85..6f35827f9 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.4.9" +VERSION = "1.5.5.0" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/thirdparty/keepalive/keepalive.py b/thirdparty/keepalive/keepalive.py index 4647f1f7c..59cd9aacc 100644 --- a/thirdparty/keepalive/keepalive.py +++ b/thirdparty/keepalive/keepalive.py @@ -165,11 +165,11 @@ class ConnectionManager: def get_ready_conn(self, host): conn = None - self._lock.acquire() try: + self._lock.acquire() if host in self._hostmap: for c in self._hostmap[host]: - if self._readymap[c]: + if self._readymap.get(c): self._readymap[c] = 0 conn = c break