From 4b26fc536aa0aa48581569bdf1f37435f09f7d2a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 15 Mar 2014 18:09:48 +0100 Subject: also clear response_hex before using it --- udev/ykfde.c | 1 + 1 file changed, 1 insertion(+) 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)) { -- cgit v1.2.3-70-g09d2