Skip to content
Snippets Groups Projects
Commit 934a6d41 authored by Matt Johnston's avatar Matt Johnston
Browse files

BUG: mp_div_2d returns status and it isn't checked.

FIX: Check and return status.
From Erik Hovland

--HG--
extra : convert_revision : 5ffd8cbe12baca17918527c8e8e626600849ad10
parent d6ee29f5
Branches
Tags
...@@ -269,7 +269,9 @@ int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d) ...@@ -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);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment