mirror of git://git.gnupg.org/gnupg.git
agent: Fix possible uninitalized use of CTX in simple_pwquery.
* common/simple-pwquery.c (agent_open): Clear CTX even on early error.
--
GnuPG-bug-id: 4223
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit bafcf70951
)
This commit is contained in:
parent
62c7527117
commit
e53253485c
|
@ -246,6 +246,7 @@ agent_open (assuan_context_t *ctx)
|
|||
#ifdef SPWQ_USE_LOGGING
|
||||
log_error (_("no gpg-agent running in this session\n"));
|
||||
#endif
|
||||
*ctx = NULL;
|
||||
return SPWQ_NO_AGENT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue