Fix bug introduced with revision 1.95 when this filed was modified to
[openssl.git] / apps / ca.c
index db4652069697354dbb167dc9ffb192b7ba16850a..cbb1a0529355094d014f8b5e7832ee6496f278d6 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1454,13 +1454,13 @@ bad:
                        }
                if ((crldays == 0) && (crlhours == 0))
                        {
-                       BIO_printf(bio_err,"cannot lookup how long until the next CRL is issuer\n");
+                       BIO_printf(bio_err,"cannot lookup how long until the next CRL is issued\n");
                        goto err;
                        }
 
                if (verbose) BIO_printf(bio_err,"making CRL\n");
                if ((crl=X509_CRL_new()) == NULL) goto err;
-               if (!X509_CRL_set_issuer_name(crl, X509_get_issuer_name(x509))) goto err;
+               if (!X509_CRL_set_issuer_name(crl, X509_get_subject_name(x509))) goto err;
 
                tmptm = ASN1_TIME_new();
                if (!tmptm) goto err;