summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/ecdsa/ecdsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecdsa.c b/src/lib/libcrypto/ecdsa/ecdsa.c
index 20d605cafd..d0cc846af3 100644
--- a/src/lib/libcrypto/ecdsa/ecdsa.c
+++ b/src/lib/libcrypto/ecdsa/ecdsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecdsa.c,v 1.2 2023/07/05 12:27:36 tb Exp $ */ 1/* $OpenBSD: ecdsa.c,v 1.3 2023/07/05 12:49:42 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -196,7 +196,7 @@ ecdsa_prepare_digest(const unsigned char *digest, int digest_len,
196 const EC_GROUP *group; 196 const EC_GROUP *group;
197 int digest_bits, order_bits; 197 int digest_bits, order_bits;
198 198
199 if (!BN_bin2bn(digest, digest_len, e)) { 199 if (BN_bin2bn(digest, digest_len, e) == NULL) {
200 ECDSAerror(ERR_R_BN_LIB); 200 ECDSAerror(ERR_R_BN_LIB);
201 return 0; 201 return 0;
202 } 202 }