Fixes for scan-build

This commit is contained in:
Sean Parkinson
2017-03-15 09:38:53 +10:00
parent 7bef7aaa81
commit 003e18ecbc
2 changed files with 5 additions and 1 deletions

View File

@ -299,6 +299,10 @@ static int ClientBenchmarkThroughput(WOLFSSL_CTX* ctx, char* host, word16 port,
/* Compare TX and RX buffers */
if(XMEMCMP(tx_buffer, rx_buffer, len) != 0) {
free(tx_buffer);
tx_buffer = NULL;
free(rx_buffer);
rx_buffer = NULL;
err_sys("Compare TX and RX buffers failed");
}

View File

@ -10032,7 +10032,7 @@ static int ecc_test_curve(WC_RNG* rng, int keySize)
#if !defined(WOLFSSL_ATECC508A) && defined(HAVE_ECC_KEY_IMPORT) && \
defined(HAVE_ECC_KEY_EXPORT)
static int ecc_point_test()
static int ecc_point_test(void)
{
int ret;
ecc_point* point;