summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-03-15 18:09:48 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-03-15 18:09:48 +0100
commit4b26fc536aa0aa48581569bdf1f37435f09f7d2a (patch)
tree40aec3675834b0a5d937843c733f88845116b8b3
parent3a36c30f59fc2f634dabf9d419b6b1b51fd00899 (diff)
downloadmkinitcpio-ykfde-4b26fc536aa0aa48581569bdf1f37435f09f7d2a.tar.gz
mkinitcpio-ykfde-4b26fc536aa0aa48581569bdf1f37435f09f7d2a.tar.zst
also clear response_hex before using it
-rw-r--r--udev/ykfde.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev/ykfde.c b/udev/ykfde.c
index b89f613..00c2b92 100644
--- a/udev/ykfde.c
+++ b/udev/ykfde.c
@@ -176,6 +176,7 @@ int main(int argc, char **argv) {
}
memset(response, 0, sizeof(response));
+ memset(response_hex, 0, sizeof(response_hex));
/* do challenge/response and encode to hex */
if (!yk_challenge_response(yk, slot, 0, strlen(challenge), (unsigned char *)challenge, sizeof(response), response)) {