mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-05 12:14:28 +02:00
Fixes from using cppcheck tool
Various fixes for uninitialized variable use. sniffer.c: close file when seek fails tls.c: fix QSH_GET_SIZE macro wolfio.c: uIPGenerateCookie: use the parameter, _ctx, instead of self referencing. wolfssl_adds.c: check for equivalent to XBADFILE to indicate error. SP: change right shift of signed value to unsigned sp_int.h: define 128-bit types types.h: change a XMALLOC define to not use (,,) - cppcheck doesn't like it and is unnecessary.
This commit is contained in:
+1
-1
@@ -4689,7 +4689,7 @@ int wc_ecc_sign_hash(const byte* in, word32 inlen, byte* out, word32 *outlen,
|
||||
int wc_ecc_sign_hash_ex(const byte* in, word32 inlen, WC_RNG* rng,
|
||||
ecc_key* key, mp_int *r, mp_int *s)
|
||||
{
|
||||
int err;
|
||||
int err = 0;
|
||||
#ifndef WOLFSSL_SP_MATH
|
||||
mp_int* e;
|
||||
#if (!defined(WOLFSSL_ASYNC_CRYPT) || !defined(HAVE_CAVIUM_V)) && \
|
||||
|
||||
Reference in New Issue
Block a user