aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/passphrase.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c
index fc2414ca3..a736deba8 100644
--- a/g10/passphrase.c
+++ b/g10/passphrase.c
@@ -772,7 +772,11 @@ agent_get_passphrase ( u32 *keyid, int mode, const char *tryagain_text,
return pw;
}
else if ( reply == GPGA_PROT_CANCELED )
- log_info ( _("cancelled by user\n") );
+ {
+ log_info ( _("cancelled by user\n") );
+ if (canceled)
+ *canceled = 1;
+ }
else
log_error ( _("problem with the agent: agent returns 0x%lx\n"),
(ulong)reply );