mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Merge pull request #245 from kaleb-himes/scan-build-fixes4
check err after set
This commit is contained in:
@@ -4192,7 +4192,8 @@ static int accel_fp_mul(int idx, mp_int* k, ecc_point *R, mp_int* modulus,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (err == MP_OKAY) {
|
if (err == MP_OKAY) {
|
||||||
z = 0;
|
z = 0; /* mp_to_unsigned_bin != MP_OKAY z will be declared/not set */
|
||||||
|
(void) z; /* Acknowledge the unused assignment */
|
||||||
ForceZero(kb, KB_SIZE);
|
ForceZero(kb, KB_SIZE);
|
||||||
/* map R back from projective space */
|
/* map R back from projective space */
|
||||||
if (map) {
|
if (map) {
|
||||||
@@ -4450,6 +4451,9 @@ static int accel_fp_mul2add(int idx1, int idx2,
|
|||||||
|
|
||||||
#undef KB_SIZE
|
#undef KB_SIZE
|
||||||
|
|
||||||
|
if (err != MP_OKAY)
|
||||||
|
return err;
|
||||||
|
|
||||||
return ecc_map(R, modulus, mp);
|
return ecc_map(R, modulus, mp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user