[pkg-opensc-commit] [libp11] 24/51: save pincode
Eric Dorland
eric at moszumanska.debian.org
Wed Dec 7 17:51:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit faa1d85fa6198d7ae4fbf94776e7a6c49fe1bd61
Author: Andrei Korikov <andrei.korikov at technicolor.com>
Date: Wed Oct 26 11:48:15 2016 +0200
save pincode
---
src/eng_back.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/eng_back.c b/src/eng_back.c
index 45d8b5f..a5522fa 100644
--- a/src/eng_back.c
+++ b/src/eng_back.c
@@ -313,10 +313,10 @@ static X509 *pkcs11_load_cert(ENGINE_CTX *ctx, const char *s_slot_cert_id)
destroy_pin(ctx);
ctx->pin = OPENSSL_malloc(MAX_PIN_LENGTH+1);
if (ctx->pin != NULL) {
+ memset(ctx->pin, 0, MAX_PIN_LENGTH+1);
memcpy(ctx->pin, tmp_pin, tmp_pin_len);
ctx->pin_length = tmp_pin_len;
}
- memset(ctx->pin, 0, MAX_PIN_LENGTH+1);
}
if (!n) {
--
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