mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 04:25:15 +00:00
Makes sure that nsock_pool is properly disposed of if the proxy connection fails. Closes #973
This commit is contained in:
parent
b2fb0b25ad
commit
7e876de889
1 changed files with 3 additions and 0 deletions
|
|
@ -1049,7 +1049,10 @@ int ncat_connect(void)
|
|||
}
|
||||
|
||||
if (connect_socket == -1)
|
||||
{
|
||||
nsock_pool_delete(mypool);
|
||||
return 1;
|
||||
}
|
||||
/* Clear out whatever is left in the socket buffer which may be
|
||||
already sent by proxy server along with http response headers. */
|
||||
//line = socket_buffer_remainder(&stateful_buf, &n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue