TLS: Fix use of an uninitialized value

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22523)
This commit is contained in:
Hugo Landau 2023-10-26 12:47:58 +01:00 committed by Tomas Mraz
parent 8cb4a47dbb
commit f62fec6404

View File

@ -115,7 +115,7 @@ int custom_ext_parse(SSL_CONNECTION *s, unsigned int context,
const unsigned char *ext_data, size_t ext_size, X509 *x,
size_t chainidx)
{
int al;
int al = 0;
custom_ext_methods *exts = &s->cert->custext;
custom_ext_method *meth;
ENDPOINT role = ENDPOINT_BOTH;