diff options
Diffstat (limited to 'src/lib/libcrypto')
| -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 | ||
