Fix parenthesis in bn_mp_div.c to correctly return error code if init fails.

Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
This commit is contained in:
Tom St Denis 2015-10-30 17:49:09 -04:00
parent e50d8afe32
commit 7916c4035b
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ int mp_div(mp_int * a, mp_int * b, mp_int * c, mp_int * d)
}
/* init our temps */
if ((res = mp_init_multi(&ta, &tb, &tq, &q, NULL) != MP_OKAY)) {
if ((res = mp_init_multi(&ta, &tb, &tq, &q, NULL)) != MP_OKAY) {
return res;
}