Merge pull request #718 from dgarske/fix_ecc_comp_err

Fix scan-build warning with err not being read with HAVE_COMP_KEY defined
This commit is contained in:
toddouska
2017-01-19 08:50:44 -08:00
committed by GitHub

View File

@ -3901,6 +3901,7 @@ int wc_ecc_import_point_der(byte* in, word32 inLen, const int curve_idx,
did_init = 1;
/* load curve info */
if (err == MP_OKAY)
err = wc_ecc_curve_load(&ecc_sets[curve_idx], &curve,
(ECC_CURVE_FIELD_PRIME | ECC_CURVE_FIELD_AF | ECC_CURVE_FIELD_BF));
@ -3940,10 +3941,10 @@ int wc_ecc_import_point_der(byte* in, word32 inLen, const int curve_idx,
mp_clear(&t2);
mp_clear(&t1);
#endif
}
wc_ecc_curve_free(curve);
}
}
#endif
if (err == MP_OKAY && compressed == 0)