From a7e0e6398142d437c6778b0f7dcfa136728f77e0 Mon Sep 17 00:00:00 2001 From: Allan Jude Date: Sat, 17 Dec 2016 11:35:06 -0500 Subject: [PATCH] do not overwrite client side HPN buffer size If HPNBufferSize is set in ssh_config, respect that value, rather than blindly overwriting it with the default --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index 13f9bc6cfa2b..e501d841dd02 100644 --- a/ssh.c +++ b/ssh.c @@ -1924,7 +1924,7 @@ hpn_options_init(void) if (tty_flag) options.hpn_buffer_size = CHAN_SES_WINDOW_DEFAULT; - else + else if (options.hpn_buffer_size <= 0) /* use value from config file if present */ options.hpn_buffer_size = 2 * 1024 * 1024; if (datafellows & SSH_BUG_LARGEWINDOW) {