Make sure the opened directory is closed on exit.
Notified by Lorinczy Zsigmond <lzsiga@mail.ahiv.hu>
This commit is contained in:
parent
0a0102b0fd
commit
ea599390c6
@ -751,6 +751,7 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
|
|||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
if (d) closedir(d);
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_READDIR);
|
CRYPTO_w_unlock(CRYPTO_LOCK_READDIR);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user