summaryrefslogtreecommitdiffstats
path: root/src/crypto/asn1/tasn_fre.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/asn1/tasn_fre.c')
-rw-r--r--src/crypto/asn1/tasn_fre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/asn1/tasn_fre.c b/src/crypto/asn1/tasn_fre.c
index c344ed7..d1317ae 100644
--- a/src/crypto/asn1/tasn_fre.c
+++ b/src/crypto/asn1/tasn_fre.c
@@ -143,7 +143,7 @@ static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int c
case ASN1_ITYPE_NDEF_SEQUENCE:
case ASN1_ITYPE_SEQUENCE:
- if (asn1_do_lock(pval, -1, it) > 0)
+ if (!asn1_refcount_dec_and_test_zero(pval, it))
return;
if (asn1_cb)
{