mirror of https://github.com/wolfSSL/wolfssh.git
AlgoListSz returns 0 if algoList is NULL
parent
8c0c7fd240
commit
a76e80f03e
|
|
@ -3988,6 +3988,9 @@ static word32 AlgoListSz(const char* algoList)
|
|||
{
|
||||
word32 algoListSz;
|
||||
|
||||
if (algoList == NULL)
|
||||
return 0;
|
||||
|
||||
algoListSz = (word32)WSTRLEN(algoList);
|
||||
if (algoList[algoListSz-1] == ',') {
|
||||
--algoListSz;
|
||||
|
|
|
|||
Loading…
Reference in New Issue