in SendKexDhReply(), clear sigKeyBlock before use (fixes ZD11139).

pull/295/head
Daniel Pouzzner 2020-10-27 16:58:16 -05:00
parent dec94e79af
commit d80f141569
1 changed files with 2 additions and 0 deletions

View File

@ -6436,6 +6436,8 @@ int SendKexDhReply(WOLFSSH* ssh)
return WS_BAD_ARGUMENT;
}
WMEMSET(&sigKeyBlock, 0, sizeof sigKeyBlock);
sigKeyBlock.useRsa = ssh->handshake->pubKeyId == ID_SSH_RSA;
sigKeyBlock.name = IdToName(ssh->handshake->pubKeyId);
sigKeyBlock.nameSz = (word32)strlen(sigKeyBlock.name);