make sure error queue is totally emptied
[openssl.git] / crypto / conf / conf_mod.c
index d45adea851314d669cb273be2eb40efb2d59ea1e..bae9fcaffaceae30dd4444269cb6c057298cd325 100644 (file)
@@ -254,7 +254,7 @@ static CONF_MODULE *module_load_dso(const CONF *cnf, char *name, char *value,
        path = NCONF_get_string(cnf, value, "path");
        if (!path)
                {
-               ERR_get_error();
+               ERR_clear_error();
                path = name;
                }
        dso = DSO_load(NULL, path, NULL, 0);