summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-23 11:39:56 +0000
committertb <>2023-04-23 11:39:56 +0000
commit9748cde356caac3aa94b7096522157c10a31e976 (patch)
treed5e6118620af4ced99109b7905eb5ad53059a58e
parente52d8630bbe21af8a646605f68c47c4cf2cde369 (diff)
downloadopenbsd-9748cde356caac3aa94b7096522157c10a31e976.tar.gz
openbsd-9748cde356caac3aa94b7096522157c10a31e976.tar.bz2
openbsd-9748cde356caac3aa94b7096522157c10a31e976.zip
Drop a superfluous isneg check.
-rw-r--r--src/lib/libcrypto/x509/x509_utl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_utl.c b/src/lib/libcrypto/x509/x509_utl.c
index 51c3135bbe..411b0408f9 100644
--- a/src/lib/libcrypto/x509/x509_utl.c
+++ b/src/lib/libcrypto/x509/x509_utl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_utl.c,v 1.12 2023/04/23 11:34:57 tb Exp $ */ 1/* $OpenBSD: x509_utl.c,v 1.13 2023/04/23 11:39:56 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -273,7 +273,7 @@ s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value)
273 return NULL; 273 return NULL;
274 } 274 }
275 275
276 if (isneg && BN_is_zero(bn)) 276 if (BN_is_zero(bn))
277 isneg = 0; 277 isneg = 0;
278 278
279 aint = BN_to_ASN1_INTEGER(bn, NULL); 279 aint = BN_to_ASN1_INTEGER(bn, NULL);