In RSA, DSA, DH, and RAND - if the "***_new()" function fails because the
[openssl.git] / crypto / dsa / dsa_lib.c
index 2abdd08c9066f29aca7fa2ccd40cf00642c6d875..1b33705f46357721761b431b1a59d55f215c0f9b 100644 (file)
@@ -152,6 +152,7 @@ DSA *DSA_new_method(ENGINE *engine)
                {
                if((ret->engine=ENGINE_get_default_DSA()) == NULL)
                        {
+                       DSAerr(DSA_F_DSA_NEW,ERR_LIB_ENGINE);
                        OPENSSL_free(ret);
                        return NULL;
                        }