[pkg-opensc-commit] [libp11] 87/239: fix bug causing a core dump.
Eric Dorland
eric at moszumanska.debian.org
Sat Oct 17 06:21:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit 0c466bb8759df8d75a28ad0682ecb6150cde6090
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date: Wed Jul 19 07:39:49 2006 +0000
fix bug causing a core dump.
---
src/p11_slot.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/p11_slot.c b/src/p11_slot.c
index 1e92c15..63a02e3 100644
--- a/src/p11_slot.c
+++ b/src/p11_slot.c
@@ -139,7 +139,8 @@ int PKCS11_login(PKCS11_SLOT * slot, int so, const char *pin)
rv = CRYPTOKI_call(ctx, C_Login(priv->session,
so ? CKU_SO : CKU_USER,
- (CK_UTF8CHAR *) pin, strlen(pin)));
+ (CK_UTF8CHAR *) pin,
+ pin ? strlen(pin) : 0));
CRYPTOKI_checkerr(PKCS11_F_PKCS11_LOGIN, rv);
priv->loggedIn = 1;
return 0;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git
More information about the pkg-opensc-commit
mailing list