diff --git a/ctaocrypt/test/test.c b/ctaocrypt/test/test.c index 896e540bf..39bdc6290 100644 --- a/ctaocrypt/test/test.c +++ b/ctaocrypt/test/test.c @@ -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; } diff --git a/src/internal.c b/src/internal.c index f81c65be7..174fe5fac 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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,