clear bogus errors in ca utility
authorDr. Stephen Henson <steve@openssl.org>
Sun, 14 Mar 2010 13:07:48 +0000 (13:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 14 Mar 2010 13:07:48 +0000 (13:07 +0000)
apps/ca.c

index e287d2a6c6cc236fa127d33fe2e6f94752c61e99..346ffd264c6bdcd68a0f94b616e7f7b0140ef798 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1408,6 +1408,7 @@ bad:
                        if (!NCONF_get_number(conf,section,
                                ENV_DEFAULT_CRL_HOURS, &crlhours))
                                crlhours = 0;
+                       ERR_clear_error();
                        }
                if ((crldays == 0) && (crlhours == 0) && (crlsec == 0))
                        {