In the example, only internal_bio is set using SSL_set_bio as below.

*SSL_set_bio(ssl, internal_bio, internal_bio);*

network_bio is not linked to SSL session. So it has to be freed explicitly.


On Fri, Jul 18, 2014 at 2:01 AM, Iñaki Baz Castillo <[email protected]> wrote:

> 2014-07-17 14:29 GMT+02:00 Dr. Stephen Henson <[email protected]>:
> > Your code uses a doesn't use BIO pairs but the same rule applies. The
> call to
> > SSL_free() will call BIO_free_all on the BIO or BIOs passed to
> SSL_set_bio()
> > internal_bio and network_bio in this example.
>
> Thanks. Then the example in the documentation is really wrong and may
> cause a crash, right? I mean the "BIO_free(network_bio);" line at the
> end.
>
>
> --
> Iñaki Baz Castillo
> <[email protected]>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [email protected]
>

Reply via email to