Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-01-31 00:49:16 +0300
committerRichard Levitte <levitte@openssl.org>2003-01-31 00:49:16 +0300
commit8e1e238219aba2cd86bd8e5f175c233177ee18f8 (patch)
tree2ee3f4059b1e02b91151a4a43617460bf00d55ec /ssl
parent88c1fec923d521321f6de9d5fa316a461f285607 (diff)
A few small bugs with BIO popping.
PR: 364
Diffstat (limited to 'ssl')
-rw-r--r--ssl/bio_ssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c
index 467e149947..1301549e21 100644
--- a/ssl/bio_ssl.c
+++ b/ssl/bio_ssl.c
@@ -403,6 +403,10 @@ static long ssl_ctrl(BIO *b, int cmd, long num, void *ptr)
{
BIO_free_all(ssl->wbio);
}
+ if (b->next_bio != NULL)
+ {
+ CRYPTO_add(&b->next_bio->references,1,CRYPTO_LOCK_BIO);
+ }
ssl->wbio=NULL;
ssl->rbio=NULL;
break;