mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
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>
This commit is contained in:
parent
2bdc4b6ed9
commit
bafcf70951
@ -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…
x
Reference in New Issue
Block a user