fix Visual Studio warning, scan-build issue

This commit is contained in:
Chris Conlon 2014-09-10 16:17:13 -06:00
parent 8d902637b2
commit c2c9922380
2 changed files with 2 additions and 1 deletions

View File

@ -3009,6 +3009,7 @@ int rsa_test(void)
if (!file) {
err_sys("can't open ./certs/client-key.der, "
"Please run from CyaSSL home dir", -40);
free(tmp);
return -40;
}

View File

@ -649,7 +649,7 @@ static void InitSuitesHashSigAlgo(Suites* suites, int haveECDSAsig,
#endif
}
suites->hashSigAlgoSz = idx;
suites->hashSigAlgoSz = (word16)idx;
}
void InitSuites(Suites* suites, ProtocolVersion pv, byte haveRSA, byte havePSK,