From: Dr. Stephen Henson Date: Tue, 22 Sep 2015 12:00:03 +0000 (+0100) Subject: typo X-Git-Tag: OpenSSL_1_1_0-pre1~564 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75ef61d7058b30a5c96a9f49eee0f0313141ec54;p=openssl typo Reviewed-by: Matt Caswell --- diff --git a/crypto/x509/x509_req.c b/crypto/x509/x509_req.c index a2d70c013c..a8b838cff9 100644 --- a/crypto/x509/x509_req.c +++ b/crypto/x509/x509_req.c @@ -318,9 +318,9 @@ X509_NAME *X509_REQ_get_subject_name(X509_REQ *req) void X509_REQ_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg, X509_REQ *req) { - if (psig == NULL) + if (psig != NULL) *psig = req->signature; - if (palg == NULL) + if (palg != NULL) *palg = &req->sig_alg; } diff --git a/crypto/x509/x509cset.c b/crypto/x509/x509cset.c index 1543588139..676cebafa5 100644 --- a/crypto/x509/x509cset.c +++ b/crypto/x509/x509cset.c @@ -166,9 +166,9 @@ STACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl) void X509_CRL_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg, X509_CRL *crl) { - if (psig == NULL) + if (psig != NULL) *psig = crl->signature; - if (palg == NULL) + if (palg != NULL) *palg = &crl->sig_alg; }