aboutsummaryrefslogtreecommitdiffstats
path: root/g10/seckey-cert.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/seckey-cert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/seckey-cert.c b/g10/seckey-cert.c
index 1398b181b..9995aa416 100644
--- a/g10/seckey-cert.c
+++ b/g10/seckey-cert.c
@@ -83,7 +83,7 @@ do_check( PKT_secret_key *sk, const char *tryagain_text, int mode,
&sk->protect.s2k, mode,
tryagain_text, canceled );
if (!dek && canceled && *canceled)
- return G10ERR_GENERAL;
+ return GPG_ERR_CANCELED;
err = openpgp_cipher_open (&cipher_hd, sk->protect.algo,