From bee3ea23cd1af205d7485666f17fd09af62443b8 Mon Sep 17 00:00:00 2001 From: Martijn Vegter Date: Wed, 20 Dec 2023 13:36:24 +0100 Subject: [PATCH] Do not falsely log support for ext-info if the server did not return 'ext-info-s' --- src/main/java/com/jcraft/jsch/Session.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/jcraft/jsch/Session.java b/src/main/java/com/jcraft/jsch/Session.java index 57302763..35042c07 100644 --- a/src/main/java/com/jcraft/jsch/Session.java +++ b/src/main/java/com/jcraft/jsch/Session.java @@ -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"); } }