diff options
author | Werner Koch <[email protected]> | 2004-02-18 16:59:03 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-02-18 16:59:03 +0000 |
commit | 16f3d8396e1e6954b02cd86ec6344ad60396a0e8 (patch) | |
tree | 861163f8ac533e2af4f8cc0169c3b1b475ffa45c /g10/passphrase.c | |
parent | Described new options (diff) | |
download | gnupg-16f3d8396e1e6954b02cd86ec6344ad60396a0e8.tar.gz gnupg-16f3d8396e1e6954b02cd86ec6344ad60396a0e8.zip |
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
* passphrase.c (agent_open): Ditto.
Diffstat (limited to 'g10/passphrase.c')
-rw-r--r-- | g10/passphrase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c index 0db9404b9..27ffcad97 100644 --- a/g10/passphrase.c +++ b/g10/passphrase.c @@ -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; |