Skip to content

Commit e9d288e

Browse files
committed
Server Does Not Set expectMsgId to MSGID_NEWKEYS
In the server code, the server is not setting the expectedMsgId to MSGID_NEWKEYS before sending its new keys message. Update DoKexDhReply() to set expectMsgId to MSGID_NEWKEYS. Affected function: DoKeyDhReply. Issue: F-1275
1 parent b71670f commit e9d288e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/internal.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12914,8 +12914,11 @@ int SendKexDhReply(WOLFSSH* ssh)
1291412914
ret = BundlePacket(ssh);
1291512915
}
1291612916

12917-
if (ret == WS_SUCCESS)
12917+
if (ret == WS_SUCCESS) {
12918+
ssh->handshake->expectMsgId = MSGID_NEWKEYS;
12919+
WLOG_EXPECT_MSGID(ssh->handshake->expectMsgId);
1291812920
ret = SendNewKeys(ssh);
12921+
}
1291912922

1292012923
if (ret == WS_SUCCESS && ssh->sendExtInfo) {
1292112924
ret = SendExtInfo(ssh);

0 commit comments

Comments
 (0)