Merge pull request #921 from ejohnstown/expect-newkeys

Fix server NEWKEYS message expectation
pull/923/head
JacobBarthelmeh 2026-04-15 16:59:13 -06:00 committed by GitHub
commit 85cf3e7c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -12929,8 +12929,11 @@ int SendKexDhReply(WOLFSSH* ssh)
ret = BundlePacket(ssh);
}
if (ret == WS_SUCCESS)
if (ret == WS_SUCCESS) {
ssh->handshake->expectMsgId = MSGID_NEWKEYS;
WLOG_EXPECT_MSGID(ssh->handshake->expectMsgId);
ret = SendNewKeys(ssh);
}
if (ret == WS_SUCCESS && ssh->sendExtInfo) {
ret = SendExtInfo(ssh);