mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
password-agent: actually really don't access unallocated memory
Fix for 9726f9ff11
This commit is contained in:
parent
9726f9ff11
commit
5ba7b87195
@ -384,9 +384,9 @@ static int parse_password(const char *filename, char **wall) {
|
||||
packet[0] = '+';
|
||||
strcpy(packet+1, password);
|
||||
}
|
||||
}
|
||||
|
||||
free(password);
|
||||
free(password);
|
||||
}
|
||||
}
|
||||
|
||||
if (r == -ETIME || r == -ENOENT) {
|
||||
|
Loading…
Reference in New Issue
Block a user