]> granicus.if.org Git - openssl/commitdiff
typo
authorDr. Stephen Henson <steve@openssl.org>
Tue, 22 Sep 2015 12:00:03 +0000 (13:00 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 22 Sep 2015 12:00:03 +0000 (13:00 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/x509/x509_req.c
crypto/x509/x509cset.c

index a2d70c013c2eb67a9269c7084b05d0c0d0d2b1d8..a8b838cff9811651d406e140c914217c775f70b0 100644 (file)
@@ -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;
 }
 
index 1543588139f819b7c85242673f67794ed9485866..676cebafa56c5922cd20f2192ac80d77ff697aaf 100644 (file)
@@ -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;
 }