Reviewed-By: Wu Jiaxin <jiaxin...@intel.com> Best Regards! Jiaxin
> -----Original Message----- > From: Thomas Palmer [mailto:thomas.pal...@hpe.com] > Sent: Wednesday, June 22, 2016 9:57 AM > To: edk2-devel@lists.01.org > Cc: Wu, Jiaxin <jiaxin...@intel.com>; samer.el-haj-mahm...@hpe.com; > Thomas Palmer <thomas.pal...@hpe.com> > Subject: [PATCH] [edk2-staging/HTTPS-TLS][PATCH]: Initialize handshake ret > variable > > Initialize the variable that holds the return from SSL_do_handshake. > When the handshake function is not called it will be uninitialized. > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Thomas Palmer <thomas.pal...@hpe.com> > --- > CryptoPkg/Library/TlsLib/TlsLib.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/CryptoPkg/Library/TlsLib/TlsLib.c > b/CryptoPkg/Library/TlsLib/TlsLib.c > index ed300c4..e597995 100644 > --- a/CryptoPkg/Library/TlsLib/TlsLib.c > +++ b/CryptoPkg/Library/TlsLib/TlsLib.c > @@ -631,6 +631,7 @@ TlsDoHandshake ( > return EFI_INVALID_PARAMETER; > } > > + ret = 1; > if(BufferIn == NULL && BufferInSize == 0) { > // > // If RequestBuffer is NULL and RequestSize is 0, and TLS session > -- > 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel