aboutsummaryrefslogtreecommitdiffstats
path: root/g10/seckey-cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/seckey-cert.c')
-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 b1780b1f9..aeb67d85a 100644
--- a/g10/seckey-cert.c
+++ b/g10/seckey-cert.c
@@ -178,7 +178,7 @@ check_secret_key( PKT_secret_key *sk, int n )
int i;
if( n < 1 )
- n = opt.batch? 1 : 3; /* use the default value */
+ n = (opt.batch && !opt.use_agent)? 1 : 3; /* use the default value */
for(i=0; i < n && rc == G10ERR_BAD_PASS; i++ ) {
const char *tryagain = NULL;