Skip to content

Commit 85cf3e7

Browse files
Merge pull request #921 from ejohnstown/expect-newkeys
Fix server NEWKEYS message expectation
2 parents cdd6df0 + e9d288e commit 85cf3e7

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
@@ -12929,8 +12929,11 @@ int SendKexDhReply(WOLFSSH* ssh)
1292912929
ret = BundlePacket(ssh);
1293012930
}
1293112931

12932-
if (ret == WS_SUCCESS)
12932+
if (ret == WS_SUCCESS) {
12933+
ssh->handshake->expectMsgId = MSGID_NEWKEYS;
12934+
WLOG_EXPECT_MSGID(ssh->handshake->expectMsgId);
1293312935
ret = SendNewKeys(ssh);
12936+
}
1293412937

1293512938
if (ret == WS_SUCCESS && ssh->sendExtInfo) {
1293612939
ret = SendExtInfo(ssh);

0 commit comments

Comments
 (0)