[PATCH] libtommath: Fix check mp_init_multi() result

Maks Naumov maksqwe1atukr.net
Sat May 2 13:21:37 PDT 2015


Signed-off-by: Maks Naumov <maksqwe1 at ukr.net>
---
 src/tls/libtommath.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tls/libtommath.c b/src/tls/libtommath.c
index 3fb8fbe..251133e 100644
--- a/src/tls/libtommath.c
+++ b/src/tls/libtommath.c
@@ -1631,7 +1631,7 @@ static 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;
   }
 
-- 
1.9.5.msysgit.1



More information about the Hostap mailing list