diff options
author | 2014-04-26 18:56:37 +0000 | |
---|---|---|
committer | 2014-04-26 18:56:37 +0000 | |
commit | 0f637b92bc02cf08d6ec14891d27a582cbd971ae (patch) | |
tree | 86c57b804d6bfaf4c846d7c286917d8063f541d2 /lib/libssl/ssl_cert.c | |
parent | sync (diff) | |
download | wireguard-openbsd-0f637b92bc02cf08d6ec14891d27a582cbd971ae.tar.xz wireguard-openbsd-0f637b92bc02cf08d6ec14891d27a582cbd971ae.zip |
Replace all use of ERR_add_error_data with ERR_asprintf_error_data.
This avoids a lot of ugly gymnastics to do snprintfs before sending the
bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c
where it was being called with the incorrect number of arguments and
using random things off the stack as addresses of strings.
ok krw@, jsing@
Diffstat (limited to 'lib/libssl/ssl_cert.c')
-rw-r--r-- | lib/libssl/ssl_cert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/ssl_cert.c b/lib/libssl/ssl_cert.c index b493585c58e..1b9944cf929 100644 --- a/lib/libssl/ssl_cert.c +++ b/lib/libssl/ssl_cert.c @@ -783,7 +783,7 @@ SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack, } if (!ret) { SYSerr(SYS_F_OPENDIR, errno); - ERR_add_error_data(3, "opendir ('", dir, "')"); + ERR_asprintf_error_data("opendir ('%s')", dir); SSLerr(SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK, ERR_R_SYS_LIB); } |