diff options
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index 7971c7b535..286b9564c4 100644 --- a/src/common.c +++ b/src/common.c @@ -748,6 +748,12 @@ pin_callback (void *user, int attempt, const char *token_url, { if (strcmp (cached_url, token_url) == 0) { + if (strlen(pin) >= sizeof(cached_pin)) + { + fprintf (stderr, "Too long PIN given\n"); + exit (1); + } + strcpy (pin, cached_pin); return 0; } |