diff options
Diffstat (limited to 'src/lib/libssl/bio_ssl.c')
-rw-r--r-- | src/lib/libssl/bio_ssl.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/libssl/bio_ssl.c b/src/lib/libssl/bio_ssl.c index 4c5c5ac3de..96ba1ad09c 100644 --- a/src/lib/libssl/bio_ssl.c +++ b/src/lib/libssl/bio_ssl.c | |||
@@ -509,7 +509,6 @@ ssl_puts(BIO *bp, const char *str) | |||
509 | BIO * | 509 | BIO * |
510 | BIO_new_buffer_ssl_connect(SSL_CTX *ctx) | 510 | BIO_new_buffer_ssl_connect(SSL_CTX *ctx) |
511 | { | 511 | { |
512 | #ifndef OPENSSL_NO_SOCK | ||
513 | BIO *ret = NULL, *buf = NULL, *ssl = NULL; | 512 | BIO *ret = NULL, *buf = NULL, *ssl = NULL; |
514 | 513 | ||
515 | if ((buf = BIO_new(BIO_f_buffer())) == NULL) | 514 | if ((buf = BIO_new(BIO_f_buffer())) == NULL) |
@@ -524,14 +523,12 @@ err: | |||
524 | BIO_free(buf); | 523 | BIO_free(buf); |
525 | if (ssl != NULL) | 524 | if (ssl != NULL) |
526 | BIO_free(ssl); | 525 | BIO_free(ssl); |
527 | #endif | ||
528 | return (NULL); | 526 | return (NULL); |
529 | } | 527 | } |
530 | 528 | ||
531 | BIO * | 529 | BIO * |
532 | BIO_new_ssl_connect(SSL_CTX *ctx) | 530 | BIO_new_ssl_connect(SSL_CTX *ctx) |
533 | { | 531 | { |
534 | #ifndef OPENSSL_NO_SOCK | ||
535 | BIO *ret = NULL, *con = NULL, *ssl = NULL; | 532 | BIO *ret = NULL, *con = NULL, *ssl = NULL; |
536 | 533 | ||
537 | if ((con = BIO_new(BIO_s_connect())) == NULL) | 534 | if ((con = BIO_new(BIO_s_connect())) == NULL) |
@@ -544,7 +541,6 @@ BIO_new_ssl_connect(SSL_CTX *ctx) | |||
544 | err: | 541 | err: |
545 | if (con != NULL) | 542 | if (con != NULL) |
546 | BIO_free(con); | 543 | BIO_free(con); |
547 | #endif | ||
548 | return (NULL); | 544 | return (NULL); |
549 | } | 545 | } |
550 | 546 | ||