summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-25 15:30:30 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-25 15:30:30 +0200
commit75b6ae8dbcc7b924b4027820ba2ef445effb958c (patch)
tree90d05d362fa61a8658bfd3aa86eb46a20b1a4690
parent95def1200e8283bad1d9f6a7f4437051d3557841 (diff)
downloadgnutls-75b6ae8dbcc7b924b4027820ba2ef445effb958c.tar.gz
p11tool: Do not allow a newline as PIN.
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 4922c7f2e8..fd0ffd8580 100644
--- a/src/common.c
+++ b/src/common.c
@@ -1032,7 +1032,7 @@ pin_callback (void *user, int attempt, const char *token_url,
}
}
- if (password == NULL || password[0] == 0)
+ if (password == NULL || password[0] == 0 || password[0] == '\n')
{
fprintf (stderr, "No password given\n");
exit (1);