Fix mem init error in DoKexDhReply

pull/429/head
Eric Blankenhorn 2022-07-13 11:30:34 -05:00
parent e646bd141a
commit c31efcd8ed
1 changed files with 1 additions and 0 deletions

View File

@ -3460,6 +3460,7 @@ static int DoKexDhReply(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
sigSz = scratch;
begin = 0;
asnSigSz = sizeof(asnSig);
XMEMSET(asnSig, 0, asnSigSz);
ret = GetStringRef(&rSz, &r, sig, sigSz, &begin);
if (ret == WS_SUCCESS)