summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts_conf.c
diff options
context:
space:
mode:
authorbeck <>2014-04-26 18:56:38 +0000
committerbeck <>2014-04-26 18:56:38 +0000
commite7dbd7a1e2ad3e12dafa2919bc8603d60416ea4d (patch)
treedff54039de6c4454b05953e2ce78edfc5693e6b5 /src/lib/libcrypto/ts/ts_conf.c
parenta1c73b72875dcb25545f111b3779cf0f0ebf9c88 (diff)
downloadopenbsd-e7dbd7a1e2ad3e12dafa2919bc8603d60416ea4d.tar.gz
openbsd-e7dbd7a1e2ad3e12dafa2919bc8603d60416ea4d.tar.bz2
openbsd-e7dbd7a1e2ad3e12dafa2919bc8603d60416ea4d.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 'src/lib/libcrypto/ts/ts_conf.c')
-rw-r--r--src/lib/libcrypto/ts/ts_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ts/ts_conf.c b/src/lib/libcrypto/ts/ts_conf.c
index f8cf3b514c..12cce16bc8 100644
--- a/src/lib/libcrypto/ts/ts_conf.c
+++ b/src/lib/libcrypto/ts/ts_conf.c
@@ -239,7 +239,7 @@ err:
239 if (!ret) { 239 if (!ret) {
240 TSerr(TS_F_TS_CONF_SET_DEFAULT_ENGINE, 240 TSerr(TS_F_TS_CONF_SET_DEFAULT_ENGINE,
241 TS_R_COULD_NOT_SET_ENGINE); 241 TS_R_COULD_NOT_SET_ENGINE);
242 ERR_add_error_data(2, "engine:", name); 242 ERR_asprintf_error_data("engine:%s", name);
243 } 243 }
244 if (e) 244 if (e)
245 ENGINE_free(e); 245 ENGINE_free(e);