In RSA, DSA, DH, and RAND - if the "***_new()" function fails because the
[openssl.git] / crypto / dh / dh_lib.c
index c0a2472..b3c609e 100644 (file)
@@ -148,6 +148,7 @@ DH *DH_new_method(ENGINE *engine)
                {
                if((ret->engine=ENGINE_get_default_DH()) == NULL)
                        {
                {
                if((ret->engine=ENGINE_get_default_DH()) == NULL)
                        {
+                       DHerr(DH_F_DH_NEW,ERR_LIB_ENGINE);
                        OPENSSL_free(ret);
                        return NULL;
                        }
                        OPENSSL_free(ret);
                        return NULL;
                        }