In RSA, DSA, DH, and RAND - if the "***_new()" function fails because the
[openssl.git] / crypto / rsa / rsa_lib.c
index d3a602f0a5be91bb9944b03c03e6b77760850f9d..3a4760c8d4e31ae4a54d441e8f246d3552184ba2 100644 (file)
@@ -166,6 +166,7 @@ RSA *RSA_new_method(ENGINE *engine)
                {
                if((ret->engine=ENGINE_get_default_RSA()) == NULL)
                        {
+                       RSAerr(RSA_F_RSA_NEW_METHOD,ERR_LIB_ENGINE);
                        OPENSSL_free(ret);
                        return NULL;
                        }