Clear error if unique_subject lookup fails.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 15 Apr 2004 00:32:19 +0000 (00:32 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 15 Apr 2004 00:32:19 +0000 (00:32 +0000)
apps/ca.c

index afcbfcd8b812cedfeec80c674f7c47e9815c0597..2e8377391aeee7e29444fd77dbf0531274d49abd 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -650,8 +650,10 @@ bad:
 #endif
                db_attr.unique_subject = parse_yesno(p,1);
                }
-#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