diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509rset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509rset.c b/src/lib/libcrypto/x509/x509rset.c index 9154e33845..b05b2a1c91 100644 --- a/src/lib/libcrypto/x509/x509rset.c +++ b/src/lib/libcrypto/x509/x509rset.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509rset.c,v 1.13 2024/03/25 11:27:00 job Exp $ */ | 1 | /* $OpenBSD: x509rset.c,v 1.14 2024/03/25 12:10:57 jsing 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 | * |
| @@ -68,7 +68,7 @@ | |||
| 68 | int | 68 | int |
| 69 | X509_REQ_set_version(X509_REQ *x, long version) | 69 | X509_REQ_set_version(X509_REQ *x, long version) |
| 70 | { | 70 | { |
| 71 | if (x == NULL || version != 0) | 71 | if (x == NULL) |
| 72 | return (0); | 72 | return (0); |
| 73 | x->req_info->enc.modified = 1; | 73 | x->req_info->enc.modified = 1; |
| 74 | return (ASN1_INTEGER_set(x->req_info->version, version)); | 74 | return (ASN1_INTEGER_set(x->req_info->version, version)); |
