Skip to content

Commit

Permalink
Make "Too many remote algorithms" exit rather than log
Browse files Browse the repository at this point in the history
It's fatal anyway, makes logs more concise.
  • Loading branch information
mkj committed Oct 24, 2020
1 parent 037d26f commit b070bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common-algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b070bcd

Please sign in to comment.