summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/x509/x509name.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src/crypto/x509/x509name.c')
-rw-r--r--lib/libssl/src/crypto/x509/x509name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/x509/x509name.c b/lib/libssl/src/crypto/x509/x509name.c
index 3d90fd67fee..32fce2debba 100644
--- a/lib/libssl/src/crypto/x509/x509name.c
+++ b/lib/libssl/src/crypto/x509/x509name.c
@@ -298,7 +298,7 @@ X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne,
if (obj == NULL) {
X509err(X509_F_X509_NAME_ENTRY_CREATE_BY_TXT,
X509_R_INVALID_FIELD_NAME);
- ERR_add_error_data(2, "name=", field);
+ ERR_asprintf_error_data("name=%s", field);
return (NULL);
}
nentry = X509_NAME_ENTRY_create_by_OBJ(ne, obj, type, bytes, len);