File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -586,6 +586,14 @@ INLINE static int IsMessageAllowedServer(WOLFSSH *ssh, byte msg)
586586 return 0 ;
587587 }
588588 }
589+ else {
590+ if (msg >= MSGID_USERAUTH_RESTRICT && msg < MSGID_USERAUTH_LIMIT ) {
591+ WLOG (WS_LOG_DEBUG , "Message ID %u not allowed by server "
592+ "after user authentication" , msg );
593+ return 0 ;
594+ }
595+ }
596+
589597 return 1 ;
590598}
591599#endif /* NO_WOLFSSH_SERVER */
@@ -617,6 +625,13 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, byte msg)
617625 return 0 ;
618626 }
619627 }
628+ else {
629+ if (msg >= MSGID_USERAUTH_RESTRICT && msg < MSGID_USERAUTH_LIMIT ) {
630+ WLOG (WS_LOG_DEBUG , "Message ID %u not allowed by client "
631+ "after user authentication" , msg );
632+ return 0 ;
633+ }
634+ }
620635 return 1 ;
621636}
622637#endif /* NO_WOLFSSH_CLIENT */
You can’t perform that action at this time.
0 commit comments