aboutsummaryrefslogtreecommitdiffstats
path: root/src/decrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decrypt.c')
-rw-r--r--src/decrypt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/decrypt.c b/src/decrypt.c
index 896a873f..e5d2f7c7 100644
--- a/src/decrypt.c
+++ b/src/decrypt.c
@@ -377,7 +377,9 @@ _gpgme_decrypt_status_handler (void *priv, gpgme_status_code_t code,
switch (code)
{
case GPGME_STATUS_FAILURE:
- opd->failure_code = _gpgme_parse_failure (args);
+ if (!opd->failure_code
+ || gpg_err_code (opd->failure_code) == GPG_ERR_GENERAL)
+ opd->failure_code = _gpgme_parse_failure (args);
break;
case GPGME_STATUS_EOF: