comparison common-algo.c @ 1769:0e178f767ada

Merge from main
author Matt Johnston <matt@ucc.asn.au>
date Thu, 29 Oct 2020 21:51:41 +0800
parents 9efceb851bea
children 35d504d59c05
comparison
equal deleted inserted replaced
1768:096a66e45212 1769:0e178f767ada
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];