1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.

* passphrase.c (agent_open): Ditto.
This commit is contained in:
Werner Koch 2004-02-18 16:59:03 +00:00
parent 6c9c5accd1
commit 16f3d8396e
3 changed files with 7 additions and 2 deletions

View file

@ -504,7 +504,7 @@ agent_open (int *ret_prot)
else
{
infostr = getenv ( "GPG_AGENT_INFO" );
if ( !infostr ) {
if ( !infostr || !*infostr ) {
log_error (_("gpg-agent is not available in this session\n"));
opt.use_agent = 0;
return -1;