diff options
author | Justus Winter <justus@g10code.com> | 2015-12-11 11:05:52 +0100 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2015-12-11 11:21:42 +0100 |
commit | 25f0f053cd306200a6211b5cf397838a59835ee7 (patch) | |
tree | df52d3ece43d38d8e77be51e9631e8c81309ce31 | |
parent | agent: Fix typo. (diff) | |
download | gnupg2-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>
-rw-r--r-- | agent/pksign.c | 3 |
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) { |