mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
systemctl: always null-terminate the password
This commit is contained in:
parent
53bdb7c186
commit
a9bd141b4a
|
@ -179,8 +179,6 @@ int ask_password_tty(
|
|||
}
|
||||
}
|
||||
|
||||
if (ttyfd >= 0)
|
||||
|
||||
passphrase[p] = 0;
|
||||
|
||||
if (!(*_passphrase = strdup(passphrase))) {
|
||||
|
|
Loading…
Reference in a new issue