Skip to content

Commit

Permalink
Clear otp after initial run
Browse files Browse the repository at this point in the history
  • Loading branch information
yossizahn committed Dec 23, 2024
1 parent 1d28e63 commit ad561c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ int main(int argc, char *argv[])
ret = EXIT_SUCCESS;
if ((cfg.persistent > 0) && (get_sig_received() == 0))
sleep(cfg.persistent);
cfg.otp[0] = '\0'; // clear OTP for next run
} while ((get_sig_received() == 0) && (cfg.persistent != 0));

goto exit;
Expand Down

0 comments on commit ad561c1

Please sign in to comment.