initialize temp sequence number

This commit is contained in:
John Safranek
2016-10-02 13:02:20 -07:00
parent 575785db3e
commit a839b61e81
2 changed files with 2 additions and 2 deletions

View File

@ -3992,7 +3992,7 @@ static INLINE void DtlsSEQIncrement(WOLFSSL* ssl, int verify)
static INLINE void WriteSEQ(WOLFSSL* ssl, int verify, byte* out) static INLINE void WriteSEQ(WOLFSSL* ssl, int verify, byte* out)
{ {
word32 seq[2]; word32 seq[2] = {0, 0};
if (!ssl->options.dtls) { if (!ssl->options.dtls) {
GetSEQIncrement(ssl, verify, seq); GetSEQIncrement(ssl, verify, seq);

View File

@ -688,7 +688,7 @@ static INLINE void DtlsGetSEQ(WOLFSSL* ssl, int verify, word32 seq[2])
static INLINE void WriteSEQ(WOLFSSL* ssl, int verify, byte* out) static INLINE void WriteSEQ(WOLFSSL* ssl, int verify, byte* out)
{ {
word32 seq[2]; word32 seq[2] = {0, 0};
if (!ssl->options.dtls) { if (!ssl->options.dtls) {
GetSEQIncrement(ssl, verify, seq); GetSEQIncrement(ssl, verify, seq);