diff options
author | tb <> | 2023-06-23 10:34:16 +0000 |
---|---|---|
committer | tb <> | 2023-06-23 10:34:16 +0000 |
commit | 897bfa360be535489769bcdbfdfbf80cc844730d (patch) | |
tree | 7a886f89ae100cc02a07b82496fe8abae1ff9b5d /src | |
parent | 0a626bc492263402c8b285b0f8de1309ee9e2062 (diff) | |
download | openbsd-897bfa360be535489769bcdbfdfbf80cc844730d.tar.gz openbsd-897bfa360be535489769bcdbfdfbf80cc844730d.tar.bz2 openbsd-897bfa360be535489769bcdbfdfbf80cc844730d.zip |
Fix return check for BN_hex2bn()
Purely cosmetic change taking into account the fact that this function
returns a length rather than a boolean. This is the last offender in the
library.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/ec/ec_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_print.c b/src/lib/libcrypto/ec/ec_print.c index 2aa0aa66a9..da33c4eccd 100644 --- a/src/lib/libcrypto/ec/ec_print.c +++ b/src/lib/libcrypto/ec/ec_print.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_print.c,v 1.11 2023/03/08 05:45:31 jsing Exp $ */ | 1 | /* $OpenBSD: ec_print.c,v 1.12 2023/06/23 10:34:16 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -167,7 +167,7 @@ EC_POINT_hex2point(const EC_GROUP *group, const char *buf, | |||
167 | EC_POINT *ret = NULL; | 167 | EC_POINT *ret = NULL; |
168 | BIGNUM *tmp_bn = NULL; | 168 | BIGNUM *tmp_bn = NULL; |
169 | 169 | ||
170 | if (!BN_hex2bn(&tmp_bn, buf)) | 170 | if (BN_hex2bn(&tmp_bn, buf) == 0) |
171 | return NULL; | 171 | return NULL; |
172 | 172 | ||
173 | ret = EC_POINT_bn2point(group, tmp_bn, point, ctx); | 173 | ret = EC_POINT_bn2point(group, tmp_bn, point, ctx); |