diff options
| author | tb <> | 2024-05-23 01:52:05 +0000 |
|---|---|---|
| committer | tb <> | 2024-05-23 01:52:05 +0000 |
| commit | 5b35cf250ccfd603588aaf8a76461dd7dbb09f47 (patch) | |
| tree | 94f131edfd1e1b4523670a3fe57dc9b70300aa67 /src | |
| parent | 9a4b6049e56b0718fb9f5af66cffd8fe43d6879b (diff) | |
| download | openbsd-5b35cf250ccfd603588aaf8a76461dd7dbb09f47.tar.gz openbsd-5b35cf250ccfd603588aaf8a76461dd7dbb09f47.tar.bz2 openbsd-5b35cf250ccfd603588aaf8a76461dd7dbb09f47.zip | |
x509_v3.c: zap another pointless local variable
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_v3.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509/x509_v3.c b/src/lib/libcrypto/x509/x509_v3.c index 0474ef5dab..12d416eec0 100644 --- a/src/lib/libcrypto/x509/x509_v3.c +++ b/src/lib/libcrypto/x509/x509_v3.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_v3.c,v 1.26 2024/05/23 01:50:52 tb Exp $ */ | 1 | /* $OpenBSD: x509_v3.c,v 1.27 2024/05/23 01:52:05 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -277,15 +277,10 @@ LCRYPTO_ALIAS(X509_EXTENSION_set_critical); | |||
| 277 | int | 277 | int |
| 278 | X509_EXTENSION_set_data(X509_EXTENSION *ext, ASN1_OCTET_STRING *data) | 278 | X509_EXTENSION_set_data(X509_EXTENSION *ext, ASN1_OCTET_STRING *data) |
| 279 | { | 279 | { |
| 280 | int i; | ||
| 281 | |||
| 282 | if (ext == NULL) | 280 | if (ext == NULL) |
| 283 | return 0; | 281 | return 0; |
| 284 | 282 | ||
| 285 | i = ASN1_STRING_set(ext->value, data->data, data->length); | 283 | return ASN1_STRING_set(ext->value, data->data, data->length); |
| 286 | if (!i) | ||
| 287 | return 0; | ||
| 288 | return 1; | ||
| 289 | } | 284 | } |
| 290 | LCRYPTO_ALIAS(X509_EXTENSION_set_data); | 285 | LCRYPTO_ALIAS(X509_EXTENSION_set_data); |
| 291 | 286 | ||
