HttpRequest* request = NULL;
const char* uri;
- if (!rdg || !method )
+ if (!rdg || !method)
return NULL;
uri = http_context_get_uri(rdg->http);
peerPort, timeout);
if (sockfd < 0)
- {
return FALSE;
- }
socketBio = BIO_new(BIO_s_simple_socket());
if (!bufferedBio)
{
- closesocket(sockfd);
- BIO_free(socketBio);
+ BIO_free_all(socketBio);
return FALSE;
}
{
if (!proxy_connect(settings, bufferedBio, proxyUsername, proxyPassword, settings->GatewayHostname,
settings->GatewayPort))
+ {
+ BIO_free_all(bufferedBio);
return FALSE;
+ }
}
if (!status)