Skip to content

Commit

Permalink
Merge pull request #463 from mvegter/mvegter-patch-correct-ext-info-l…
Browse files Browse the repository at this point in the history
…ogging

Do not falsely log support for ext-info if the server did not return 'ext-info-s'
  • Loading branch information
mwiede authored Jan 3, 2024
2 parents e478214 + bee3ea2 commit 8510c55
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 8510c55

Please sign in to comment.