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:
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 New Issue
Block a user