[pkg-opensc-commit] [pkcs11-helper] 07/15: Do not attempt to logout if not initialize, thanks to Jan Just Keijser
Eric Dorland
eric at moszumanska.debian.org
Fri Jan 6 23:40:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to tag pkcs11-helper-1.08
in repository pkcs11-helper.
commit 20f7b5b33215d3f0c5436cba2eeeeb30d31a564d
Author: alonbl <alonbl at 485eb718-1723-0410-b8a9-88cf21a28c35>
Date: Wed Feb 23 11:23:43 2011 +0000
Do not attempt to logout if not initialize, thanks to Jan Just Keijser
---
lib/pkcs11h-core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/pkcs11h-core.c b/lib/pkcs11h-core.c
index aae9449..84871c3 100644
--- a/lib/pkcs11h-core.c
+++ b/lib/pkcs11h-core.c
@@ -1072,6 +1072,10 @@ pkcs11h_logout (void) {
"PKCS#11: pkcs11h_logout entry"
);
+ if (_g_pkcs11h_data == NULL || !_g_pkcs11h_data->initialized) {
+ goto cleanup;
+ }
+
for (
current_session = _g_pkcs11h_data->sessions;
current_session != NULL;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git
More information about the pkg-opensc-commit
mailing list