From 321b36b5ad3e9d79e03efef256c7b539ca7466f0 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 23 Apr 2023 09:58:38 +0000 Subject: [PATCH] x509_utl.c: Use correct spelling of NULL --- lib/libcrypto/x509/x509_utl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/x509/x509_utl.c b/lib/libcrypto/x509/x509_utl.c index 6a907ffac9e..1a043d93d57 100644 --- a/lib/libcrypto/x509/x509_utl.c +++ b/lib/libcrypto/x509/x509_utl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_utl.c,v 1.8 2023/04/21 06:07:10 tb Exp $ */ +/* $OpenBSD: x509_utl.c,v 1.9 2023/04/23 09:58:38 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -246,7 +246,7 @@ s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value) if (!value) { X509V3error(X509V3_R_INVALID_NULL_VALUE); - return 0; + return NULL; } bn = BN_new(); if (value[0] == '-') { @@ -269,7 +269,7 @@ s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value) if (!ret || value[ret]) { BN_free(bn); X509V3error(X509V3_R_BN_DEC2BN_ERROR); - return 0; + return NULL; } if (isneg && BN_is_zero(bn)) @@ -279,7 +279,7 @@ s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, const char *value) BN_free(bn); if (!aint) { X509V3error(X509V3_R_BN_TO_ASN1_INTEGER_ERROR); - return 0; + return NULL; } if (isneg) aint->type |= V_ASN1_NEG; -- 2.20.1