ssl: fix possible ref counting fields use before init.
authorFdaSilvaYY <fdasilvayy@gmail.com>
Tue, 27 Apr 2021 20:50:18 +0000 (22:50 +0200)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 1 May 2021 16:23:21 +0000 (18:23 +0200)
commit045a893091994a5837a2bec9cc5646ae9ff07a2c
treecd498f84affef630a84d630199cc869964361602
parentdd28d1c4d305574e5feacb0f3fee21192b9ccf2f
ssl:  fix possible ref counting fields use before init.

`strdup(propq)` failure is doing a `goto err;` from where `SSL_CTX_free` is called.
The possible call is made before reference and lock fields setup.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/15052)
ssl/ssl_lib.c