mirror of https://github.com/wolfSSL/wolfssh.git
in SendKexDhReply(), clear sigKeyBlock before use (fixes ZD11139).
parent
dec94e79af
commit
d80f141569
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue