diff options
Diffstat (limited to 'crypto/asn1/x_pkey.c')
-rw-r--r-- | crypto/asn1/x_pkey.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/crypto/asn1/x_pkey.c b/crypto/asn1/x_pkey.c index 5bca68ad1e..6e09d29239 100644 --- a/crypto/asn1/x_pkey.c +++ b/crypto/asn1/x_pkey.c @@ -90,17 +90,10 @@ void X509_PKEY_free(X509_PKEY *x) return; i = CRYPTO_add(&x->references, -1, CRYPTO_LOCK_X509_PKEY); -#ifdef REF_PRINT - REF_PRINT("X509_PKEY", x); -#endif + REF_PRINT_COUNT("X509_PKEY", x); if (i > 0) return; -#ifdef REF_CHECK - if (i < 0) { - fprintf(stderr, "X509_PKEY_free, bad reference count\n"); - abort(); - } -#endif + REF_ASSERT_ISNT(i < 0); X509_ALGOR_free(x->enc_algor); ASN1_OCTET_STRING_free(x->enc_pkey); |