aboutsummaryrefslogtreecommitdiffstats
path: root/src/quit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quit.c')
-rw-r--r--src/quit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quit.c b/src/quit.c
index 4ce09dc..196fb60 100644
--- a/src/quit.c
+++ b/src/quit.c
@@ -35,7 +35,9 @@ void timeout_quit(int signal)
{
(void) signal;
printf("\nTimed out.\n");
+ #if AUTH != 0
passphrase_reenable_echo();
+ #endif
sleep(ERROR_SLEEP);
_exit(10);
}
@@ -50,7 +52,9 @@ void user_quit(int signal)
{
(void) signal;
printf("\n");
+ #if AUTH != 0
passphrase_reenable_echo();
+ #endif
_exit(130);
}