summaryrefslogtreecommitdiffstats
path: root/ssl/bio_ssl.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-01-30 22:49:12 +0100
committerRichard Levitte <levitte@openssl.org>2003-01-30 22:49:12 +0100
commit5d780babe3e0e60e92e41bc38c96963abfe3655f (patch)
treec0df99bd512e1da60ba5d9a597e3c4f1221d0f5b /ssl/bio_ssl.c
parentThe util scripts need to handled no-hw. (diff)
downloadopenssl-5d780babe3e0e60e92e41bc38c96963abfe3655f.tar.xz
openssl-5d780babe3e0e60e92e41bc38c96963abfe3655f.zip
A few small bugs with BIO popping.
PR: 364
Diffstat (limited to 'ssl/bio_ssl.c')
-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;