From 3e21c85da365f66582d77eb0a81016c7f43c7762 Mon Sep 17 00:00:00 2001 From: Luis Felipe Strano Moraes Date: Thu, 16 Sep 2010 23:30:01 -0300 Subject: [PATCH 1/1] ask-password. Initializing socket_fd inside ask_agent. Garbage value could have been used if there was an error creating the password file. --- src/ask-password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ask-password.c b/src/ask-password.c index 22dda974c..bcee6863c 100644 --- a/src/ask-password.c +++ b/src/ask-password.c @@ -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; -- 2.30.2