mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Don't ignore (\!) reference count in X509_STORE_free
This commit is contained in:
parent
b7bfe69b66
commit
bff9ce4db3
@ -238,6 +238,19 @@ void X509_STORE_free(X509_STORE *vfy)
|
||||
if (vfy == NULL)
|
||||
return;
|
||||
|
||||
i=CRYPTO_add(&vfy->references,-1,CRYPTO_LOCK_X509_STORE);
|
||||
#ifdef REF_PRINT
|
||||
REF_PRINT("X509_STORE",vfy);
|
||||
#endif
|
||||
if (i > 0) return;
|
||||
#ifdef REF_CHECK
|
||||
if (i < 0)
|
||||
{
|
||||
fprintf(stderr,"X509_STORE_free, bad reference count\n");
|
||||
abort(); /* ok */
|
||||
}
|
||||
#endif
|
||||
|
||||
sk=vfy->get_cert_methods;
|
||||
for (i=0; i<sk_X509_LOOKUP_num(sk); i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user