[Pkg-gnupg-commit] [gnupg2] 21/159: agent: Improve error handling.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Jan 27 13:23:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 25f0f053cd306200a6211b5cf397838a59835ee7
Author: Justus Winter <justus at g10code.com>
Date: Fri Dec 11 11:05:52 2015 +0100
agent: Improve error handling.
* agent/pksign.c (agent_pksign_do): Improve error handling.
Signed-off-by: Justus Winter <justus at g10code.com>
---
agent/pksign.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/agent/pksign.c b/agent/pksign.c
index f64729c..7b498d4 100644
--- a/agent/pksign.c
+++ b/agent/pksign.c
@@ -505,7 +505,8 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce,
ctrl->digest.raw_value);
}
- rc = gcry_pk_verify (s_sig, s_hash, s_pkey? s_pkey: s_skey);
+ if (! rc)
+ rc = gcry_pk_verify (s_sig, s_hash, s_pkey? s_pkey: s_skey);
if (rc)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list