[PATCH] libtommath: Fix check mp_init_multi() result

Maks Naumov maksqwe1 at ukr.net
Sat May 2 17:26:20 EDT 2015



-------------- next part --------------
From bcf7fa63b5d0af9d9c67e69ecbd24638c2b21451 Mon Sep 17 00:00:00 2001
From: Maks Naumov <maksqwe1 at ukr.net>
Date: Sat, 2 May 2015 23:21:37 +0300
Subject: [PATCH] libtommath: Fix check mp_init_multi() result

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