Merge pull request #920 from dgarske/fix_sb_tls

Fix for scan-build warning for possible use of uninitialized `eccKey`
This commit is contained in:
toddouska
2017-05-16 12:56:50 -07:00
committed by GitHub

View File

@@ -4756,7 +4756,7 @@ static int TLSX_KeyShare_GenEccKey(WOLFSSL *ssl, KeyShareEntry* kse)
byte* keyData = NULL;
word32 dataSize;
word32 keySize;
ecc_key* eccKey;
ecc_key* eccKey = NULL;
word16 curveId;
/* TODO: [TLS13] The key sizes should come from wolfcrypt. */