In RSA, DSA, DH, and RAND - if the "***_new()" function fails because the
[openssl.git] / crypto / dsa / dsa_lib.c
index 2abdd08..1b33705 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;
                        }