summaryrefslogtreecommitdiffstats
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 95af40b78..a8fae04d6 100644
--- a/g10/seckey-cert.c
+++ b/g10/seckey-cert.c
@@ -164,7 +164,7 @@ check_secret_key( PKT_secret_key *sk, int n )
int i;
if( n < 1 )
- n = 3; /* use the default value */
+ n = opt.batch? 1 : 3; /* use the default value */
for(i=0; i < n && rc == G10ERR_BAD_PASS; i++ ) {
if( i )