From c2c99223806b2dd7198fcccb297ae831edbf7e15 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 10 Sep 2014 16:17:13 -0600 Subject: [PATCH] fix Visual Studio warning, scan-build issue --- ctaocrypt/test/test.c | 1 + src/internal.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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,