diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-04 19:06:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-04 19:06:43 +0200 |
commit | 5ba7b871951ee120f1e9d5281debe00e2e42ba99 (patch) | |
tree | 92152a6263382322c24cb7b540f6159e05d3b521 /src | |
parent | 9726f9ff11fa7b94dceed2972cd2453a08b9ee6a (diff) |
password-agent: actually really don't access unallocated memory
Fix for 9726f9ff11fa7b94dceed2972cd2453a08b9ee6a
Diffstat (limited to 'src')
-rw-r--r-- | src/tty-ask-password-agent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c index 38442f66bd..02b959ea59 100644 --- a/src/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent.c @@ -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) { |