From 25f0f053cd306200a6211b5cf397838a59835ee7 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 11 Dec 2015 11:05:52 +0100 Subject: [PATCH] agent: Improve error handling. * agent/pksign.c (agent_pksign_do): Improve error handling. Signed-off-by: Justus Winter --- agent/pksign.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {