[pkg-opensc-commit] [engine-pkcs11] 38/152: fix resource leakage, found by Risto Laanoja.
Eric Dorland
eric at moszumanska.debian.org
Mon Oct 19 03:11:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository engine-pkcs11.
commit 25d05b100b9abb9845a8e94265da42c728133746
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date: Fri Jun 29 06:38:08 2007 +0000
fix resource leakage, found by Risto Laanoja.
---
src/engine_pkcs11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/engine_pkcs11.c b/src/engine_pkcs11.c
index 4371273..fc21c26 100644
--- a/src/engine_pkcs11.c
+++ b/src/engine_pkcs11.c
@@ -418,7 +418,7 @@ X509 *pkcs11_load_cert(ENGINE * e, const char *s_slot_cert_id)
}
if (PKCS11_enumerate_certs(tok, &certs, &count)) {
- fail("unable to enumerate certificates\n");
+ fprintf(stderr,"unable to enumerate certificates\n");
PKCS11_release_all_slots(ctx, slot_list, count);
return NULL;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git
More information about the pkg-opensc-commit
mailing list