Makes sure that nsock_pool is properly disposed of if the proxy connection fails. Closes #973

This commit is contained in:
nnposter 2017-08-18 02:24:37 +00:00
parent b2fb0b25ad
commit 7e876de889

View file

@ -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);