OPENSSL_NO_SOCK fixes [from HEAD].

PR: 2791
Submitted by: Ben Noordhuis
This commit is contained in:
Andy Polyakov
2012-04-16 17:43:02 +00:00
parent 94c666479d
commit f6a1939f0f
2 changed files with 3 additions and 1 deletions

View File

@@ -538,6 +538,7 @@ err:
BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
{
#ifndef OPENSSL_NO_SOCK
BIO *ret=NULL,*con=NULL,*ssl=NULL;
if ((con=BIO_new(BIO_s_connect())) == NULL)
@@ -549,6 +550,7 @@ BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
return(ret);
err:
if (con != NULL) BIO_free(con);
#endif
return(NULL);
}