changeset 1755:9efceb851bea

Make "Too many remote algorithms" exit rather than log It's fatal anyway, makes logs more concise.
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Oct 2020 19:28:29 +0800
parents 064f5be2fc45
children 4b984c42372d
files common-algo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common-algo.c	Sat Oct 24 18:56:45 2020 +0800
+++ b/common-algo.c	Sat Oct 24 19:28:29 2020 +0800
@@ -396,7 +396,7 @@
 
 		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;
 			}