Commit 7916c4035b2449339b038a3784d7a653a5d838fc

Tom St Denis 2015-10-30T17:49:09

Fix parenthesis in bn_mp_div.c to correctly return error code if init fails. Signed-off-by: Tom St Denis <tstdenis82@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
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;
   }