summaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh_meth.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/dh/dh_meth.c')
-rw-r--r--crypto/dh/dh_meth.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/dh/dh_meth.c b/crypto/dh/dh_meth.c
index 5c15cd2b8c..f5652e0785 100644
--- a/crypto/dh/dh_meth.c
+++ b/crypto/dh/dh_meth.c
@@ -31,7 +31,6 @@ DH_METHOD *DH_meth_new(const char *name, int flags)
OPENSSL_free(dhm);
}
- ERR_raise(ERR_LIB_DH, ERR_R_MALLOC_FAILURE);
return NULL;
}
@@ -57,7 +56,6 @@ DH_METHOD *DH_meth_dup(const DH_METHOD *dhm)
OPENSSL_free(ret);
}
- ERR_raise(ERR_LIB_DH, ERR_R_MALLOC_FAILURE);
return NULL;
}
@@ -70,10 +68,8 @@ int DH_meth_set1_name(DH_METHOD *dhm, const char *name)
{
char *tmpname = OPENSSL_strdup(name);
- if (tmpname == NULL) {
- ERR_raise(ERR_LIB_DH, ERR_R_MALLOC_FAILURE);
+ if (tmpname == NULL)
return 0;
- }
OPENSSL_free(dhm->name);
dhm->name = tmpname;