openssl: explicitly NULL initialize PKCS8_PRIV_KEY_INFO 96/269596/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.061109 accepted/tizen/7.0/unified/hotfix/20221116.110815 accepted/tizen/8.0/unified/20231005.094903 accepted/tizen/unified/20220124.125224 submit/tizen/20220119.040241 tizen_7.0_m2_release tizen_8.0_m2_release
authorDaniel Kolesa <daniel@octaforge.org>
Fri, 7 Jan 2022 05:47:04 +0000 (06:47 +0100)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 19 Jan 2022 03:08:31 +0000 (12:08 +0900)
commitc485eb9314c70c3e5bc3f2eb87bd9d3edea8ae45
tree47a4ce25caed39172ea04ddfbb650fed74ae822c
parent1a41982426988888feed6e077e1ca25c0a4c5b2c
openssl: explicitly NULL initialize PKCS8_PRIV_KEY_INFO

Otherwise, PKCS8_PRIV_KEY_INFO_free will be called on an
uninitialized value if `!openssl->key` is true.

This results in WebKit TLS being broken at least with OpenSSL 3.x
and libsoup3.

Change-Id: I6cd3977f0c15c08a71600329de06f29081d66681
Part-of: <https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/201>
tls/openssl/gtlscertificate-openssl.c