Skip to content

Commit 024b141

Browse files
update Kex Init response after adding keying track sides
1 parent 9dc1071 commit 024b141

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4338,7 +4338,8 @@ static int DoKexInit(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
43384338
byte scratchLen[LENGTH_SZ];
43394339
word32 strSz = 0;
43404340

4341-
if (!ssh->isKeying) {
4341+
/* respond with KEX Init message if not having initiated the keying */
4342+
if ((ssh->isKeying & WOLFSSH_SELF_IS_KEYING) == 0) {
43424343
WLOG(WS_LOG_DEBUG, "Keying initiated");
43434344
ret = SendKexInit(ssh);
43444345
}

0 commit comments

Comments
 (0)