Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1754:064f5be2fc45 | 1755:9efceb851bea |
---|---|
394 return; | 394 return; |
395 } | 395 } |
396 | 396 |
397 if (algolist[i] == ',') { | 397 if (algolist[i] == ',') { |
398 if (*ret_count >= max_count) { | 398 if (*ret_count >= max_count) { |
399 dropbear_log(LOG_WARNING, "Too many remote algorithms"); | 399 dropbear_exit("Too many remote algorithms"); |
400 *ret_count = 0; | 400 *ret_count = 0; |
401 return; | 401 return; |
402 } | 402 } |
403 algolist[i] = '\0'; | 403 algolist[i] = '\0'; |
404 ret_list[*ret_count] = &algolist[i+1]; | 404 ret_list[*ret_count] = &algolist[i+1]; |