summaryrefslogtreecommitdiffstats
path: root/agent/pksign.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2015-12-11 11:05:52 +0100
committerJustus Winter <justus@g10code.com>2015-12-11 11:21:42 +0100
commit25f0f053cd306200a6211b5cf397838a59835ee7 (patch)
treedf52d3ece43d38d8e77be51e9631e8c81309ce31 /agent/pksign.c
parentagent: Fix typo. (diff)
downloadgnupg2-25f0f053cd306200a6211b5cf397838a59835ee7.tar.xz
gnupg2-25f0f053cd306200a6211b5cf397838a59835ee7.zip
agent: Improve error handling.
* agent/pksign.c (agent_pksign_do): Improve error handling. Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'agent/pksign.c')
-rw-r--r--agent/pksign.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/pksign.c b/agent/pksign.c
index f64729c83..7b498d464 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)
{