[pkg-opensc-commit] [pkcs11-helper] 186/253: Do not attempt to logout if not initialize, thanks to Jan Just Keijser
Eric Dorland
eric at moszumanska.debian.org
Fri Jan 6 23:39:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository pkcs11-helper.
commit 6f67fcc40bdfdc343e57cc05f6e946949f0a7a0b
Author: Alon Bar-Lev <alon.barlev at gmail.com>
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