diff common-algo.c @ 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 7c0fcd19e492
children 35d504d59c05
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;
 			}