diff options
author | Richard Levitte <levitte@openssl.org> | 2002-04-18 16:20:32 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-04-18 16:20:32 +0000 |
commit | ea599390c605b798c755874e7afba7c1b7a89b94 (patch) | |
tree | c499297f03779136e35e0edfee21e09e6ae5023d | |
parent | 0a0102b0fdd1c6f593c9b1c0727f7ea38ab460f2 (diff) |
Make sure the opened directory is closed on exit.
Notified by Lorinczy Zsigmond <lzsiga@mail.ahiv.hu>
-rw-r--r-- | ssl/ssl_cert.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index be3acabf3e..bb4cb2fdf0 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -751,6 +751,7 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack, ret = 1; err: + if (d) closedir(d); CRYPTO_w_unlock(CRYPTO_LOCK_READDIR); return ret; } |