diff options
| author | beck <> | 2014-04-26 18:56:38 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-26 18:56:38 +0000 |
| commit | e7dbd7a1e2ad3e12dafa2919bc8603d60416ea4d (patch) | |
| tree | dff54039de6c4454b05953e2ce78edfc5693e6b5 /src/lib/libcrypto/x509v3/v3_info.c | |
| parent | a1c73b72875dcb25545f111b3779cf0f0ebf9c88 (diff) | |
| download | openbsd-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/x509v3/v3_info.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_info.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_info.c b/src/lib/libcrypto/x509v3/v3_info.c index 7853e3e23b..9ae1596b1f 100644 --- a/src/lib/libcrypto/x509v3/v3_info.c +++ b/src/lib/libcrypto/x509v3/v3_info.c | |||
| @@ -184,12 +184,10 @@ v2i_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, | |||
| 184 | if (!acc->method) { | 184 | if (!acc->method) { |
| 185 | X509V3err(X509V3_F_V2I_AUTHORITY_INFO_ACCESS, | 185 | X509V3err(X509V3_F_V2I_AUTHORITY_INFO_ACCESS, |
| 186 | X509V3_R_BAD_OBJECT); | 186 | X509V3_R_BAD_OBJECT); |
| 187 | ERR_add_error_data(2, "value=", objtmp); | 187 | ERR_asprintf_error_data("value=%s", objtmp); |
| 188 | free(objtmp); | ||
| 189 | goto err; | 188 | goto err; |
| 190 | } | 189 | } |
| 191 | free(objtmp); | 190 | free(objtmp); |
| 192 | |||
| 193 | } | 191 | } |
| 194 | return ainfo; | 192 | return ainfo; |
| 195 | 193 | ||
