From 27366c3effea724a1440d47b07041948de9ba30c Mon Sep 17 00:00:00 2001 From: unix-ninja Date: Wed, 17 Oct 2018 11:44:34 -0400 Subject: [PATCH] Don't duplicate existing functionality --- src/interface.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/interface.c b/src/interface.c index 35a50df8c..8a9daa559 100644 --- a/src/interface.c +++ b/src/interface.c @@ -5200,14 +5200,10 @@ int totp_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNUSE digest[1] = otp_code; u8 *salt_pos = token.buf[1]; - int salt_len = token.len[1]; // convert ascii timestamp to ulong timestamp unsigned long timestamp = 0; - for(int i = 0; i