Fix parenthesis in bn_mp_div.c to correctly return error code if init fails. Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
diff --git a/bn_mp_div.c b/bn_mp_div.c
index 95995d0..5807f77 100644
--- a/bn_mp_div.c
+++ b/bn_mp_div.c
@@ -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;
}