mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
Make "Too many remote algorithms" exit rather than log
It's fatal anyway, makes logs more concise.
This commit is contained in:
parent
037d26f055
commit
b070bcd570
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user