mirror of https://github.com/wolfSSL/wolfssh.git
Merge pull request #295 from douzzer/ZD11139-SendKexDhReply-clear-sigKeyBlock
in SendKexDhReply(), clear sigKeyBlock before use (fixes ZD11139).pull/301/head
commit
1cd6d4c29c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue