diff mbox

libtommath: Fix check mp_init_multi() result

Message ID 554540FC.5090204@ukr.net
State Accepted
Headers show

Commit Message

Maks Naumov May 2, 2015, 9:26 p.m. UTC
From bcf7fa63b5d0af9d9c67e69ecbd24638c2b21451 Mon Sep 17 00:00:00 2001
From: Maks Naumov <maksqwe1@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@ukr.net>
---
 src/tls/libtommath.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen May 3, 2015, 3:29 p.m. UTC | #1
Thanks, applied.
diff mbox

Patch

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;
   }