diff options
| author | markus <> | 2003-05-11 21:36:58 +0000 |
|---|---|---|
| committer | markus <> | 2003-05-11 21:36:58 +0000 |
| commit | 1c98a87f0daac81245653c227eb2f2508a22a965 (patch) | |
| tree | 3de6d603296ec563b936da4e6a8a1e33d48f8884 /src/lib/libssl/bio_ssl.c | |
| parent | 31392c89d1135cf2a416f97295f6d21681b3fbc4 (diff) | |
| download | openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.tar.gz openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.tar.bz2 openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.zip | |
import 0.9.7b (without idea and rc5)
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/bio_ssl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/libssl/bio_ssl.c b/src/lib/libssl/bio_ssl.c index 467e149947..d683ee43e1 100644 --- a/src/lib/libssl/bio_ssl.c +++ b/src/lib/libssl/bio_ssl.c | |||
| @@ -403,6 +403,10 @@ static long ssl_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 403 | { | 403 | { |
| 404 | BIO_free_all(ssl->wbio); | 404 | BIO_free_all(ssl->wbio); |
| 405 | } | 405 | } |
| 406 | if (b->next_bio != NULL) | ||
| 407 | { | ||
| 408 | CRYPTO_add(&b->next_bio->references,1,CRYPTO_LOCK_BIO); | ||
| 409 | } | ||
| 406 | ssl->wbio=NULL; | 410 | ssl->wbio=NULL; |
| 407 | ssl->rbio=NULL; | 411 | ssl->rbio=NULL; |
| 408 | break; | 412 | break; |
| @@ -509,6 +513,7 @@ static int ssl_puts(BIO *bp, const char *str) | |||
| 509 | 513 | ||
| 510 | BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx) | 514 | BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx) |
| 511 | { | 515 | { |
| 516 | #ifndef OPENSSL_NO_SOCK | ||
| 512 | BIO *ret=NULL,*buf=NULL,*ssl=NULL; | 517 | BIO *ret=NULL,*buf=NULL,*ssl=NULL; |
| 513 | 518 | ||
| 514 | if ((buf=BIO_new(BIO_f_buffer())) == NULL) | 519 | if ((buf=BIO_new(BIO_f_buffer())) == NULL) |
| @@ -521,6 +526,7 @@ BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx) | |||
| 521 | err: | 526 | err: |
| 522 | if (buf != NULL) BIO_free(buf); | 527 | if (buf != NULL) BIO_free(buf); |
| 523 | if (ssl != NULL) BIO_free(ssl); | 528 | if (ssl != NULL) BIO_free(ssl); |
| 529 | #endif | ||
| 524 | return(NULL); | 530 | return(NULL); |
| 525 | } | 531 | } |
| 526 | 532 | ||
