1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

systemctl: always null-terminate the password

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2011-02-28 11:25:53 +01:00 committed by Lennart Poettering
parent 53bdb7c186
commit a9bd141b4a

View File

@ -179,8 +179,6 @@ int ask_password_tty(
}
}
if (ttyfd >= 0)
passphrase[p] = 0;
if (!(*_passphrase = strdup(passphrase))) {