[pkg-opensc-commit] [opensc] 27/50: oberthur: set to '0' memory of temp path

Eric Dorland eric at moszumanska.debian.org
Sat May 28 03:35:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit 6d4a4dfae0d128a886a25d1eda9a1105e276a88d
Author: Viktor Tarasov <viktor.tarasov at gmail.com>
Date:   Wed Apr 27 20:09:29 2016 +0200

    oberthur: set to '0' memory of temp path
---
 src/libopensc/card-oberthur.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libopensc/card-oberthur.c b/src/libopensc/card-oberthur.c
index d3afa69..1534c3a 100644
--- a/src/libopensc/card-oberthur.c
+++ b/src/libopensc/card-oberthur.c
@@ -988,11 +988,11 @@ auth_create_file(struct sc_card *card, struct sc_file *file)
 		struct sc_path tmp_path;
 		struct sc_file *df_file = NULL;
 
+		memset(&tmp_path, 0, sizeof(struct sc_path));
 		tmp_path.type = SC_PATH_TYPE_FILE_ID;
 		tmp_path.value[0] = file->id >> 8;
 		tmp_path.value[1] = file->id & 0xFF;
 		tmp_path.len = 2;
-
 		rv = auth_select_file(card, &tmp_path, &df_file);
 		sc_debug(card->ctx, SC_LOG_DEBUG_NORMAL, "rv %i", rv);
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list