From ad561c1dfa758a811c553439f58ac5530dc78d2f Mon Sep 17 00:00:00 2001 From: Yossi Zahn Date: Mon, 23 Dec 2024 19:24:36 +0200 Subject: [PATCH] Clear otp after initial run --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index c1fba334..07295d49 100644 --- a/src/main.c +++ b/src/main.c @@ -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;