[systemd-commits] src/tty-ask-password-agent.c
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Jul 4 10:07:01 PDT 2011
src/tty-ask-password-agent.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5ba7b871951ee120f1e9d5281debe00e2e42ba99
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 4 19:06:32 2011 +0200
password-agent: actually really don't access unallocated memory
Fix for 9726f9ff11fa7b94dceed2972cd2453a08b9ee6a
diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c
index 38442f6..02b959e 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) {
More information about the systemd-commits
mailing list