Commit 3e21c85d authored by Luis Felipe Strano Moraes's avatar Luis Felipe Strano Moraes Committed by Lennart Poettering
Browse files

ask-password. Initializing socket_fd inside ask_agent.

Garbage value could have been used if there was an error creating the
password file.
parent aa5939a3
......@@ -171,7 +171,7 @@ static int ask_agent(void) {
int fd = -1, r;
FILE *f = NULL;
char *socket_name = NULL;
int socket_fd, signal_fd;
int socket_fd = -1, signal_fd;
sigset_t mask;
usec_t not_after;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment