Avoid possible uninitialized variable.
authorRich Salz <rsalz@openssl.org>
Thu, 31 Aug 2017 22:27:06 +0000 (18:27 -0400)
committerRich Salz <rsalz@openssl.org>
Thu, 31 Aug 2017 22:27:06 +0000 (18:27 -0400)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4307)

ssl/statem/extensions_clnt.c

index 8db895b0fe71a1fa31f40af6a9803407c3792269..d8a9f7cd342cf9766fb44ad5f2ae7ec626de3492 100644 (file)
@@ -679,7 +679,7 @@ EXT_RETURN tls_construct_ctos_early_data(SSL *s, WPACKET *pkt,
                                          unsigned int context, X509 *x,
                                          size_t chainidx, int *al)
 {
-    const unsigned char *id;
+    const unsigned char *id = NULL;
     size_t idlen = 0;
     SSL_SESSION *psksess = NULL;
     SSL_SESSION *edsess = NULL;