Skip to content

Commit 3d2f893

Browse files
committed
Fixes #5242
1 parent 58f1009 commit 3d2f893

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.11.8"
23+
VERSION = "1.6.11.9"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/httpshandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def create_sock():
6969
sock = create_sock()
7070
if protocol not in _contexts:
7171
_contexts[protocol] = ssl.SSLContext(protocol)
72-
if getattr(self, "cert_file") and getattr(self, "key_file"):
72+
if getattr(self, "cert_file", None) and getattr(self, "key_file", None):
7373
_contexts[protocol].load_cert_chain(certfile=self.cert_file, keyfile=self.key_file)
7474
try:
7575
# Reference(s): https://askubuntu.com/a/1263098

0 commit comments

Comments
 (0)