aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-pinentry.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--agent/call-pinentry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index e6b4c6a60..cf0112833 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -582,6 +582,9 @@ agent_get_confirmation (ctrl_t ctrl,
}
rc = assuan_transact (entry_ctx, "CONFIRM", NULL, NULL, NULL, NULL, NULL, NULL);
+ if (rc && gpg_err_source (rc) && gpg_err_code (rc) == GPG_ERR_ASS_CANCELED)
+ rc = gpg_err_make (gpg_err_source (rc), GPG_ERR_CANCELED);
+
return unlock_pinentry (rc);
}