summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2011-02-28 11:25:53 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-28 22:17:36 +0100
commita9bd141b4a144d8da062f9f8fa13869bba0c7bce (patch)
tree824c8369f9c7bc64f45222c6f5c078fcb0d66da5 /src
parent53bdb7c186cc83fdbd2eb71677c18c26954fbec9 (diff)
systemctl: always null-terminate the password
Diffstat (limited to 'src')
-rw-r--r--src/ask-password-api.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ask-password-api.c b/src/ask-password-api.c
index dd54fb6abf..af1b611f27 100644
--- a/src/ask-password-api.c
+++ b/src/ask-password-api.c
@@ -179,8 +179,6 @@ int ask_password_tty(
}
}
- if (ttyfd >= 0)
-
passphrase[p] = 0;
if (!(*_passphrase = strdup(passphrase))) {