aboutsummaryrefslogtreecommitdiffstats
path: root/agent/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/query.c')
-rw-r--r--agent/query.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/query.c b/agent/query.c
index dd2139fad..98a5b2639 100644
--- a/agent/query.c
+++ b/agent/query.c
@@ -134,7 +134,7 @@ all_digitsp( const char *s)
-/* Call the Entry and ask for the PIN. We do chekc for a valid PIN
+/* Call the Entry and ask for the PIN. We do check for a valid PIN
number here and repeat it as long as we have invalid formed
numbers. */
int
@@ -146,6 +146,9 @@ agent_askpin (const char *desc_text,
struct entry_parm_s parm;
const char *errtext = NULL;
+ if (opt.batch)
+ return 0; /* fixme: we should return BAD PIN */
+
if (!pininfo || pininfo->max_length < 1)
return seterr (Invalid_Value);
if (!desc_text)