mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
minor patch
This commit is contained in:
@@ -353,7 +353,8 @@ class Connect:
|
|||||||
# Explicit closing of connection object
|
# Explicit closing of connection object
|
||||||
if not conf.keepAlive:
|
if not conf.keepAlive:
|
||||||
try:
|
try:
|
||||||
conn.fp._sock.close()
|
if hasattr(conn.fp, '_sock'):
|
||||||
|
conn.fp._sock.close()
|
||||||
conn.close()
|
conn.close()
|
||||||
except Exception, msg:
|
except Exception, msg:
|
||||||
warnMsg = "problem occured during connection closing ('%s')" % msg
|
warnMsg = "problem occured during connection closing ('%s')" % msg
|
||||||
|
|||||||
Reference in New Issue
Block a user