]> granicus.if.org Git - openssl/commitdiff
Clear error if unique_subject lookup fails.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 15 Apr 2004 00:33:24 +0000 (00:33 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 15 Apr 2004 00:33:24 +0000 (00:33 +0000)
apps/ca.c

index 2db61b1eae88bf04dece30aa0dd4d70d576a1adb..11bf296d30e8b85313386690cd9884439603c181 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -666,8 +666,10 @@ bad:
                        break;
                        }
                }
-#ifdef RL_DEBUG
        else
+               ERR_clear_error();
+#ifdef RL_DEBUG
+       if (!p)
                BIO_printf(bio_err, "DEBUG: unique_subject undefined\n", p);
 #endif
 #ifdef RL_DEBUG