forked from wolfSSL/wolfssl
Merge pull request #4188 from guidovranken/mp_invmod_slow-check
Add missing return value check in mp_invmod_slow
This commit is contained in:
@ -1197,8 +1197,7 @@ int mp_invmod_slow (mp_int * a, mp_int * b, mp_int * c)
|
|||||||
goto LBL_ERR;
|
goto LBL_ERR;
|
||||||
}
|
}
|
||||||
if (mp_isone(&x)) {
|
if (mp_isone(&x)) {
|
||||||
mp_set(c, 1);
|
res = mp_set(c, 1);
|
||||||
res = MP_OKAY;
|
|
||||||
goto LBL_ERR;
|
goto LBL_ERR;
|
||||||
}
|
}
|
||||||
if ((res = mp_copy (b, &y)) != MP_OKAY) {
|
if ((res = mp_copy (b, &y)) != MP_OKAY) {
|
||||||
|
Reference in New Issue
Block a user