diff options
author | Christian Hesse <mail@eworm.de> | 2014-03-15 18:09:48 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-03-15 18:09:48 +0100 |
commit | 4b26fc536aa0aa48581569bdf1f37435f09f7d2a (patch) | |
tree | 40aec3675834b0a5d937843c733f88845116b8b3 | |
parent | 3a36c30f59fc2f634dabf9d419b6b1b51fd00899 (diff) | |
download | mkinitcpio-ykfde-4b26fc536aa0aa48581569bdf1f37435f09f7d2a.tar.gz mkinitcpio-ykfde-4b26fc536aa0aa48581569bdf1f37435f09f7d2a.tar.zst |
also clear response_hex before using it
-rw-r--r-- | udev/ykfde.c | 1 |
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)) { |