From acdfc514b392ec829d0683e1fb7cd18265a12114 Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Wed, 27 Nov 2019 11:09:57 -0800 Subject: [PATCH] Use memset initialize --- src/tls13.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls13.c b/src/tls13.c index 19cd385f4..2cd37050f 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -4041,7 +4041,7 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx, { int ret = VERSION_ERROR; byte b = 0; - ProtocolVersion pv = {0}; + ProtocolVersion pv; Suites clSuites; word32 i = *inOutIdx; word32 begin = i; @@ -4053,6 +4053,7 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx, WOLFSSL_START(WC_FUNC_CLIENT_HELLO_DO); WOLFSSL_ENTER("DoTls13ClientHello"); + XMEMSET(&pv, 0, sizeof(ProtocolVersion)); XMEMSET(&clSuites, 0, sizeof(Suites)); #ifdef WOLFSSL_CALLBACKS