mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
BUG: mp_div_2d returns status and it isn't checked.
FIX: Check and return status. From Erik Hovland --HG-- extra : convert_revision : 5ffd8cbe12baca17918527c8e8e626600849ad10
This commit is contained in:
parent
d6ee29f5ae
commit
934a6d417d
@ -269,7 +269,9 @@ int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (d != NULL) {
|
if (d != NULL) {
|
||||||
mp_div_2d (&x, norm, &x, NULL);
|
if ((res = mp_div_2d (&x, norm, &x, NULL)) != MP_OKAY) {
|
||||||
|
goto LBL_Y;
|
||||||
|
}
|
||||||
mp_exch (&x, d);
|
mp_exch (&x, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user