Hi,
I've noticed that BIO_NOCLOSE flag does not have
the desired effect on ssl_bio, i.e. SSL connection
is closed regardless of whether this flag is set, or not.
This patch should fix the problem.

--- openssl/ssl/bio_ssl.c       2002-01-12 16:56:10.000000000 +0100
+++ openssl.patched/ssl/bio_ssl.c       2003-02-07 15:22:09.000000000 +0100
@@ -125,7 +125,7 @@
        if (a == NULL) return(0);
        bs=(BIO_SSL *)a->ptr;
-       if (bs->ssl != NULL) SSL_shutdown(bs->ssl);
        if (a->shutdown)
                {
+               if (bs->ssl != NULL) SSL_shutdown(bs->ssl);
                if (a->init && (bs->ssl != NULL))
                        SSL_free(bs->ssl);
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to