Merge pull request #295 from douzzer/ZD11139-SendKexDhReply-clear-sigKeyBlock

in SendKexDhReply(), clear sigKeyBlock before use (fixes ZD11139).
pull/301/head
John Safranek 2020-10-27 16:13:56 -07:00 committed by GitHub
commit 1cd6d4c29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -6439,6 +6439,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);