diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-05-29 14:32:23 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-23 14:00:47 +0100 |
commit | 687b48685931638ca5fca2a7d5e13516ad40ea4b (patch) | |
tree | fa20991db59b7747eb23f4b68d6d37c4fe687140 /crypto/asn1/tasn_fre.c | |
parent | b58614d7f5f98571b2c0bb2fb3df48f4b48a7e92 (diff) | |
download | openssl-687b48685931638ca5fca2a7d5e13516ad40ea4b.tar.gz |
Rework error handling from asn1_do_lock method.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/asn1/tasn_fre.c')
-rw-r--r-- | crypto/asn1/tasn_fre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/tasn_fre.c b/crypto/asn1/tasn_fre.c index 9b623d907c..d467b89c80 100644 --- a/crypto/asn1/tasn_fre.c +++ b/crypto/asn1/tasn_fre.c @@ -89,7 +89,7 @@ static void asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, case ASN1_ITYPE_NDEF_SEQUENCE: case ASN1_ITYPE_SEQUENCE: - if (asn1_do_lock(pval, -1, it) > 0) + if (asn1_do_lock(pval, -1, it) != 0) /* if error or ref-counter > 0 */ return; if (asn1_cb) { i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); |