From b070bcd57008796bd2448ba5cb4c2348fdc2e616 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 24 Oct 2020 19:28:29 +0800 Subject: [PATCH] Make "Too many remote algorithms" exit rather than log It's fatal anyway, makes logs more concise. --- common-algo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-algo.c b/common-algo.c index 7d015a8..f3961c2 100644 --- a/common-algo.c +++ b/common-algo.c @@ -396,7 +396,7 @@ static void get_algolist(char* algolist, unsigned int algolist_len, if (algolist[i] == ',') { if (*ret_count >= max_count) { - dropbear_log(LOG_WARNING, "Too many remote algorithms"); + dropbear_exit("Too many remote algorithms"); *ret_count = 0; return; }