aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c
index a962bd5..c4c1342 100644
--- a/src/test.c
+++ b/src/test.c
@@ -58,6 +58,7 @@ int main(int argc, char** argv)
{
/* Something went wrong, print what and exit */
perror(*argv);
+ passphrase_reenable_echo1(fd);
close(fd);
return 1;
}
@@ -70,7 +71,7 @@ int main(int argc, char** argv)
free(passphrase);
/* Stop hiding user input */
- passphrase_reenable_echo1(0);
+ passphrase_reenable_echo1(fd);
/* End of program */
close(fd);