Commit a9bd141b authored by Zbigniew Jędrzejewski-Szmek's avatar Zbigniew Jędrzejewski-Szmek Committed by Lennart Poettering
Browse files

systemctl: always null-terminate the password

parent 53bdb7c1
......@@ -179,8 +179,6 @@ int ask_password_tty(
}
}
if (ttyfd >= 0)
passphrase[p] = 0;
if (!(*_passphrase = strdup(passphrase))) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment