mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Add missing return value check in mp_invmod_slow
This commit is contained in:
@@ -1197,7 +1197,9 @@ 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);
|
if ((res = mp_set(c, 1)) != MP_OKAY) {
|
||||||
|
goto LBL_ERR;
|
||||||
|
}
|
||||||
res = MP_OKAY;
|
res = MP_OKAY;
|
||||||
goto LBL_ERR;
|
goto LBL_ERR;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user