summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2000-10-16 23:49:29 +0000
committerBob Beck <beck@cvs.openbsd.org>2000-10-16 23:49:29 +0000
commit41f4b0409af9b784f5a9a5a084e9ef7ba319568c (patch)
treeba2d83f107591f146f3f842c642a9b2f23fb09f7 /lib
parent0d6d2d63e7315f0477fd5d2d623423e37d9403ee (diff)
fix missing closedir() that could allow apacheSSL to leak fd's,
from netbsd (taca) credited to TAKANO Yuji <takachan@running-dog.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/ssl/ssl_cert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libssl/src/ssl/ssl_cert.c b/lib/libssl/src/ssl/ssl_cert.c
index 0596b7c5b86..f2335d56503 100644
--- a/lib/libssl/src/ssl/ssl_cert.c
+++ b/lib/libssl/src/ssl/ssl_cert.c
@@ -743,6 +743,7 @@ int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
ret = 1;
err:
+ closedir(d);
CRYPTO_w_unlock(CRYPTO_LOCK_READDIR);
return ret;
}