summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_gf2m.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_gf2m.c')
-rw-r--r--src/lib/libcrypto/bn/bn_gf2m.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_gf2m.c b/src/lib/libcrypto/bn/bn_gf2m.c
index 306f029f27..ae642ccb39 100644
--- a/src/lib/libcrypto/bn/bn_gf2m.c
+++ b/src/lib/libcrypto/bn/bn_gf2m.c
@@ -294,7 +294,8 @@ int BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
294 if (a->top < b->top) { at = b; bt = a; } 294 if (a->top < b->top) { at = b; bt = a; }
295 else { at = a; bt = b; } 295 else { at = a; bt = b; }
296 296
297 bn_wexpand(r, at->top); 297 if(bn_wexpand(r, at->top) == NULL)
298 return 0;
298 299
299 for (i = 0; i < bt->top; i++) 300 for (i = 0; i < bt->top; i++)
300 { 301 {