aboutsummaryrefslogtreecommitdiffstats
path: root/src/cerberus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cerberus.c')
-rw-r--r--src/cerberus.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cerberus.c b/src/cerberus.c
index 76a2f74..88d4ae5 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -137,6 +137,15 @@ int main(int argc, char** argv)
}
+ /* Wipe the passphrase from the memory */
+ if (skip_auth == 0)
+ {
+ long i;
+ for (i = 0; *(passphrase + i); i++)
+ *(passphrase + i) = 0;
+ }
+
+
/* Reset terminal settings */
reenable_echo();