diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_add.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_add.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_add.c b/src/lib/libcrypto/bn/bn_add.c index 048a136b95..3a8c0e847a 100644 --- a/src/lib/libcrypto/bn/bn_add.c +++ b/src/lib/libcrypto/bn/bn_add.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_add.c,v 1.13 2018/07/23 18:07:21 tb Exp $ */ | 1 | /* $OpenBSD: bn_add.c,v 1.14 2022/11/24 01:30:01 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -115,7 +115,7 @@ BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) | |||
115 | min = b->top; | 115 | min = b->top; |
116 | dif = max - min; | 116 | dif = max - min; |
117 | 117 | ||
118 | if (bn_wexpand(r, max + 1) == NULL) | 118 | if (!bn_wexpand(r, max + 1)) |
119 | return 0; | 119 | return 0; |
120 | 120 | ||
121 | r->top = max; | 121 | r->top = max; |
@@ -162,7 +162,7 @@ BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) | |||
162 | return 0; | 162 | return 0; |
163 | } | 163 | } |
164 | 164 | ||
165 | if (bn_wexpand(r, max) == NULL) | 165 | if (!bn_wexpand(r, max)) |
166 | return 0; | 166 | return 0; |
167 | 167 | ||
168 | ap = a->d; | 168 | ap = a->d; |