sqlmap/lib/request
fxrhan c447cb6a2a fix(httpshandler): close socket when SSL handshake fails with exception
When iterating through SSL/TLS protocols during connection establishment, the socket was not being closed when wrap_socket raised an exception. This caused socket resource leaks when connecting to servers that reject certain protocol versions.

The fix adds sock.close() calls to both exception handlers, matching the existing pattern used for non-exception failure cases.
2026-01-03 22:13:34 +05:30
..
__init__.py Year bump 2026-01-01 19:12:07 +01:00
basic.py Year bump 2026-01-01 19:12:07 +01:00
basicauthhandler.py Year bump 2026-01-01 19:12:07 +01:00
chunkedhandler.py Year bump 2026-01-01 19:12:07 +01:00
comparison.py Year bump 2026-01-01 19:12:07 +01:00
connect.py Year bump 2026-01-01 19:12:07 +01:00
direct.py Year bump 2026-01-01 19:12:07 +01:00
dns.py Year bump 2026-01-01 19:12:07 +01:00
httpshandler.py fix(httpshandler): close socket when SSL handshake fails with exception 2026-01-03 22:13:34 +05:30
inject.py Year bump 2026-01-01 19:12:07 +01:00
methodrequest.py Year bump 2026-01-01 19:12:07 +01:00
pkihandler.py Year bump 2026-01-01 19:12:07 +01:00
rangehandler.py Year bump 2026-01-01 19:12:07 +01:00
redirecthandler.py Year bump 2026-01-01 19:12:07 +01:00
templates.py Year bump 2026-01-01 19:12:07 +01:00