def_load_bio(): Free |biosk| more carefully
authorRichard Levitte <levitte@openssl.org>
Mon, 23 Jul 2018 20:29:22 +0000 (22:29 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 24 Jul 2018 07:50:56 +0000 (09:50 +0200)
commit85aebfcc6eedceaed34012a8b2c27c43ef402f95
tree502716db0ae2dd2d4103dad04257b81e725fe5b9
parent275bfc56a6c4efa7e80c8cbb11fda0c3f9be818d
def_load_bio(): Free |biosk| more carefully

If there's anything in the |biosk| stack, the first element is always
the input BIO.  It should never be freed in this function, so we must
take careful steps not to do so inadvertently when freeing the stack.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6769)
crypto/conf/conf_def.c