diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-05-23 01:52:06 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-05-23 01:52:06 +0000 |
commit | 03d4b9f5c945b9f7ae5b1c80723d20a7285e819e (patch) | |
tree | 4bc28a50f917292d94a8313c58c125ad2a3555fe /lib/libcrypto/x509 | |
parent | c2a0f126ea991a3d58a5a776aa59d38e37c71967 (diff) |
x509_v3.c: zap another pointless local variable
Diffstat (limited to 'lib/libcrypto/x509')
-rw-r--r-- | lib/libcrypto/x509/x509_v3.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libcrypto/x509/x509_v3.c b/lib/libcrypto/x509/x509_v3.c index 0474ef5dab4..12d416eec0d 100644 --- a/lib/libcrypto/x509/x509_v3.c +++ b/lib/libcrypto/x509/x509_v3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_v3.c,v 1.26 2024/05/23 01:50:52 tb Exp $ */ +/* $OpenBSD: x509_v3.c,v 1.27 2024/05/23 01:52:05 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -277,15 +277,10 @@ LCRYPTO_ALIAS(X509_EXTENSION_set_critical); int X509_EXTENSION_set_data(X509_EXTENSION *ext, ASN1_OCTET_STRING *data) { - int i; - if (ext == NULL) return 0; - i = ASN1_STRING_set(ext->value, data->data, data->length); - if (!i) - return 0; - return 1; + return ASN1_STRING_set(ext->value, data->data, data->length); } LCRYPTO_ALIAS(X509_EXTENSION_set_data); |