password-agent: actually really don't access unallocated memory

Fix for 9726f9ff11
This commit is contained in:
Lennart Poettering 2011-07-04 19:06:32 +02:00
parent 9726f9ff11
commit 5ba7b87195

View file

@ -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) {