diff options
author | tb <> | 2023-04-23 09:58:38 +0000 |
---|---|---|
committer | tb <> | 2023-04-23 09:58:38 +0000 |
commit | c18983dc1dc739de953964faac9e795eec043b64 (patch) | |
tree | bd26b08665b4fdc9520e8899e8a53cc34286e6f6 /src/lib | |
parent | 1f2aae760e83dddf57eb9efbec0afa29859d0612 (diff) | |
download | openbsd-c18983dc1dc739de953964faac9e795eec043b64.tar.gz openbsd-c18983dc1dc739de953964faac9e795eec043b64.tar.bz2 openbsd-c18983dc1dc739de953964faac9e795eec043b64.zip |
x509_utl.c: Use correct spelling of NULL
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509_utl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_utl.c b/src/lib/libcrypto/x509/x509_utl.c index 6a907ffac9..1a043d93d5 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.8 2023/04/21 06:07:10 tb Exp $ */ | 1 | /* $OpenBSD: x509_utl.c,v 1.9 2023/04/23 09:58:38 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 | */ |
@@ -246,7 +246,7 @@ s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value) | |||
246 | 246 | ||
247 | if (!value) { | 247 | if (!value) { |
248 | X509V3error(X509V3_R_INVALID_NULL_VALUE); | 248 | X509V3error(X509V3_R_INVALID_NULL_VALUE); |
249 | return 0; | 249 | return NULL; |
250 | } | 250 | } |
251 | bn = BN_new(); | 251 | bn = BN_new(); |
252 | if (value[0] == '-') { | 252 | if (value[0] == '-') { |
@@ -269,7 +269,7 @@ s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value) | |||
269 | if (!ret || value[ret]) { | 269 | if (!ret || value[ret]) { |
270 | BN_free(bn); | 270 | BN_free(bn); |
271 | X509V3error(X509V3_R_BN_DEC2BN_ERROR); | 271 | X509V3error(X509V3_R_BN_DEC2BN_ERROR); |
272 | return 0; | 272 | return NULL; |
273 | } | 273 | } |
274 | 274 | ||
275 | if (isneg && BN_is_zero(bn)) | 275 | if (isneg && BN_is_zero(bn)) |
@@ -279,7 +279,7 @@ s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value) | |||
279 | BN_free(bn); | 279 | BN_free(bn); |
280 | if (!aint) { | 280 | if (!aint) { |
281 | X509V3error(X509V3_R_BN_TO_ASN1_INTEGER_ERROR); | 281 | X509V3error(X509V3_R_BN_TO_ASN1_INTEGER_ERROR); |
282 | return 0; | 282 | return NULL; |
283 | } | 283 | } |
284 | if (isneg) | 284 | if (isneg) |
285 | aint->type |= V_ASN1_NEG; | 285 | aint->type |= V_ASN1_NEG; |