Make "Too many remote algorithms" exit rather than log

It's fatal anyway, makes logs more concise.
This commit is contained in:
Matt Johnston 2020-10-24 19:28:29 +08:00
parent 037d26f055
commit b070bcd570

View File

@ -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;
}