summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ec/ecp_nistz256.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/ec/ecp_nistz256.c')
-rw-r--r--lib/libcrypto/ec/ecp_nistz256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ec/ecp_nistz256.c b/lib/libcrypto/ec/ecp_nistz256.c
index e4929b92bbb..e3a6cc855a7 100644
--- a/lib/libcrypto/ec/ecp_nistz256.c
+++ b/lib/libcrypto/ec/ecp_nistz256.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecp_nistz256.c,v 1.12 2022/11/19 07:00:57 tb Exp $ */
+/* $OpenBSD: ecp_nistz256.c,v 1.13 2022/11/24 01:30:01 jsing Exp $ */
/* Copyright (c) 2014, Intel Corporation.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -310,7 +310,7 @@ is_one(const BIGNUM *z)
static int
ecp_nistz256_set_words(BIGNUM *a, BN_ULONG words[P256_LIMBS])
{
- if (bn_wexpand(a, P256_LIMBS) == NULL) {
+ if (!bn_wexpand(a, P256_LIMBS)) {
ECerror(ERR_R_MALLOC_FAILURE);
return 0;
}