In RSA, DSA, DH, and RAND - if the "***_new()" function fails because the
[openssl.git] / crypto / rsa / rsa_lib.c
index d3a602f..3a4760c 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;
                        }