]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
TLS: Fix use of an uninitialized value
authorHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 11:47:58 +0000 (12:47 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 Nov 2023 13:22:12 +0000 (14:22 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22523)

ssl/statem/extensions_cust.c

index 81f20b5f6bd0487ff0cfcb5c1059ba6cfc6498cd..8b296f1f59d286ee681d1042d5794ab4c4cf123d 100644 (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;