diff options
author | beck <> | 2017-01-29 17:49:23 +0000 |
---|---|---|
committer | beck <> | 2017-01-29 17:49:23 +0000 |
commit | 957b11334a7afb14537322f0e4795b2e368b3f59 (patch) | |
tree | 1a54abba678898ee5270ae4f3404a50ee9a92eea /src/lib/libcrypto/asn1/tasn_new.c | |
parent | df96e020e729c6c37a8c7fe311fdd1fe6a8718c5 (diff) | |
download | openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.tar.gz openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.tar.bz2 openbsd-957b11334a7afb14537322f0e4795b2e368b3f59.zip |
Send the function codes from the error functions to the bit bucket,
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_new.c')
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_new.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_new.c b/src/lib/libcrypto/asn1/tasn_new.c index 491de0131e..e9bbc05e08 100644 --- a/src/lib/libcrypto/asn1/tasn_new.c +++ b/src/lib/libcrypto/asn1/tasn_new.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tasn_new.c,v 1.16 2016/12/30 16:04:34 jsing Exp $ */ | 1 | /* $OpenBSD: tasn_new.c,v 1.17 2017/01/29 17:49:22 beck Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -190,7 +190,7 @@ asn1_item_ex_combine_new(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) | |||
190 | return 1; | 190 | return 1; |
191 | 191 | ||
192 | memerr: | 192 | memerr: |
193 | ASN1err(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW, ERR_R_MALLOC_FAILURE); | 193 | ASN1error(ERR_R_MALLOC_FAILURE); |
194 | #ifdef CRYPTO_MDEBUG | 194 | #ifdef CRYPTO_MDEBUG |
195 | if (it->sname) | 195 | if (it->sname) |
196 | CRYPTO_pop_info(); | 196 | CRYPTO_pop_info(); |
@@ -198,7 +198,7 @@ memerr: | |||
198 | return 0; | 198 | return 0; |
199 | 199 | ||
200 | auxerr: | 200 | auxerr: |
201 | ASN1err(ASN1_F_ASN1_ITEM_EX_COMBINE_NEW, ASN1_R_AUX_ERROR); | 201 | ASN1error(ASN1_R_AUX_ERROR); |
202 | ASN1_item_ex_free(pval, it); | 202 | ASN1_item_ex_free(pval, it); |
203 | #ifdef CRYPTO_MDEBUG | 203 | #ifdef CRYPTO_MDEBUG |
204 | if (it->sname) | 204 | if (it->sname) |
@@ -266,7 +266,7 @@ ASN1_template_new(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) | |||
266 | STACK_OF(ASN1_VALUE) *skval; | 266 | STACK_OF(ASN1_VALUE) *skval; |
267 | skval = sk_ASN1_VALUE_new_null(); | 267 | skval = sk_ASN1_VALUE_new_null(); |
268 | if (!skval) { | 268 | if (!skval) { |
269 | ASN1err(ASN1_F_ASN1_TEMPLATE_NEW, ERR_R_MALLOC_FAILURE); | 269 | ASN1error(ERR_R_MALLOC_FAILURE); |
270 | ret = 0; | 270 | ret = 0; |
271 | goto done; | 271 | goto done; |
272 | } | 272 | } |