Skip to content

Commit

Permalink
Do not falsely log support for ext-info if the server did not return …
Browse files Browse the repository at this point in the history
…'ext-info-s'
  • Loading branch information
mvegter committed Dec 20, 2023
1 parent f955209 commit bee3ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jcraft/jsch/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private KeyExchange receive_kexinit(Buffer buf) throws Exception {

if (enable_server_sig_algs) {
doExtInfo = checkServerExtInfo();
if (getLogger().isEnabled(Logger.INFO)) {
if (doExtInfo && getLogger().isEnabled(Logger.INFO)) {
getLogger().log(Logger.INFO, "ext-info messaging supported by server");
}
}
Expand Down

0 comments on commit bee3ea2

Please sign in to comment.