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 8db895b..d8a9f7c 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;