mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
minor patch
This commit is contained in:
parent
12a7fd4054
commit
0db0571f35
1 changed files with 2 additions and 1 deletions
|
|
@ -353,7 +353,8 @@ class Connect:
|
|||
# Explicit closing of connection object
|
||||
if not conf.keepAlive:
|
||||
try:
|
||||
conn.fp._sock.close()
|
||||
if hasattr(conn.fp, '_sock'):
|
||||
conn.fp._sock.close()
|
||||
conn.close()
|
||||
except Exception, msg:
|
||||
warnMsg = "problem occured during connection closing ('%s')" % msg
|
||||
|
|
|
|||
Loading…
Reference in a new issue