agent: Improve error handling.

* agent/pksign.c (agent_pksign_do): Improve error handling.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2015-12-11 11:05:52 +01:00
parent b78fce3271
commit 25f0f053cd
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{