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 afcbfcd..2e83773 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