diff options
Diffstat (limited to 'lib/libcrypto/conf/conf_def.c')
-rw-r--r-- | lib/libcrypto/conf/conf_def.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/conf/conf_def.c b/lib/libcrypto/conf/conf_def.c index b550623e57c..5fee2e5cfcd 100644 --- a/lib/libcrypto/conf/conf_def.c +++ b/lib/libcrypto/conf/conf_def.c @@ -229,7 +229,7 @@ def_load_bio(CONF *conf, BIO *in, long *line) goto err; } - section = (char *)malloc(10); + section = malloc(10); if (section == NULL) { CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE); goto err; @@ -361,14 +361,14 @@ again: p++; *p = '\0'; - if (!(v = (CONF_VALUE *)malloc(sizeof(CONF_VALUE)))) { + if (!(v = malloc(sizeof(CONF_VALUE)))) { CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE); goto err; } if (psection == NULL) psection = section; - v->name = (char *)malloc(strlen(pname) + 1); + v->name = malloc(strlen(pname) + 1); v->value = NULL; if (v->name == NULL) { CONFerr(CONF_F_DEF_LOAD_BIO, |