summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/conf/conf_def.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/crypto/conf/conf_def.c')
-rw-r--r--deps/openssl/openssl/crypto/conf/conf_def.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/openssl/openssl/crypto/conf/conf_def.c b/deps/openssl/openssl/crypto/conf/conf_def.c
index faca9aeb57..68c77cec7d 100644
--- a/deps/openssl/openssl/crypto/conf/conf_def.c
+++ b/deps/openssl/openssl/crypto/conf/conf_def.c
@@ -225,12 +225,11 @@ static int def_load_bio(CONF *conf, BIO *in, long *line)
goto err;
}
- section = (char *)OPENSSL_malloc(10);
+ section = BUF_strdup("default");
if (section == NULL) {
CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE);
goto err;
}
- BUF_strlcpy(section, "default", 10);
if (_CONF_new_data(conf) == 0) {
CONFerr(CONF_F_DEF_LOAD_BIO, ERR_R_MALLOC_FAILURE);