Skip to content

Commit 281c9c8

Browse files
committed
WIP
1 parent a9733f8 commit 281c9c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/internal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, byte msg)
710710
}
711711

712712
/* Is client userauth complete? */
713-
if (ssh->connectState < CONNECT_SERVER_USERAUTH_ACCEPT_DONE) {
713+
if (ssh->connectState >= CONNECT_KEYED
714+
&& ssh->connectState < CONNECT_SERVER_USERAUTH_ACCEPT_DONE) {
714715
/* The endpoints should not allow message IDs greater than or
715716
* equal to msgid 80 before user authentication is complete.
716717
* Per RFC 4252 section 6. */

0 commit comments

Comments
 (0)