Fix typo and make ca get the CA and request fields correct.
[openssl.git] / apps / ca.c
index e22beda097221b3e80e06ad3012b1bdb725aa6a0..73df13fe8e2a68a6cb30810117f0074d2073a5c2 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1662,7 +1662,7 @@ again2:
                                        }
                                if (j < 0)
                                        {
-                                       BIO_printf(bio_err,"The %s field needed to be the same in the\nCA certificate (%s) and the request (%s)\n",cv->name,((str == NULL)?"NULL":(char *)str->data),((str2 == NULL)?"NULL":(char *)str2->data));
+                                       BIO_printf(bio_err,"The %s field needed to be the same in the\nCA certificate (%s) and the request (%s)\n",cv->name,((str2 == NULL)?"NULL":(char *)str2->data),((str == NULL)?"NULL":(char *)str->data));
                                        goto err;
                                        }
                                }