diff options
Diffstat (limited to 'udev')
-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 ab20fbd..ef0cefc 100644 --- a/udev/ykfde.c +++ b/udev/ykfde.c @@ -178,6 +178,7 @@ static int get_response(const unsigned int serial, uint8_t slot, char * challeng second_factor_len = strlen(second_factor); memcpy(challenge, second_factor, second_factor_len < CHALLENGELEN / 2 ? second_factor_len : CHALLENGELEN / 2); + memset(second_factor, 0, second_factor_len); free(second_factor); } |