diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-10-24 19:28:29 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-10-24 19:28:29 +0800 |
commit | b070bcd57008796bd2448ba5cb4c2348fdc2e616 (patch) | |
tree | 871c98fdbd1a80fb2f5a9e44927dcb25e48358f0 /common-algo.c | |
parent | 037d26f055e4818616ffe5c8c3597451550e59e6 (diff) |
Make "Too many remote algorithms" exit rather than log
It's fatal anyway, makes logs more concise.
Diffstat (limited to 'common-algo.c')
-rw-r--r-- | common-algo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common-algo.c b/common-algo.c index 7d015a8..f3961c2 100644 --- a/common-algo.c +++ b/common-algo.c @@ -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; } |