diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-09-19 10:03:05 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-09-19 10:51:55 +0200 |
commit | 931349570084744101883dec704cbd6752434d6d (patch) | |
tree | 598e151f9c12f4d50241bdb9021dbbc7bcaa1e9b /src/common.c | |
parent | 12296f898e65b0588c7b3cf8d7f40f0fa4f0f7f1 (diff) | |
download | gnutls-931349570084744101883dec704cbd6752434d6d.tar.gz |
tools: corrected pin entry
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c index b75a9ea784..d8ef2e05a7 100644 --- a/src/common.c +++ b/src/common.c @@ -1012,7 +1012,7 @@ pin_callback(void *user, int attempt, const char *token_url, if (cache > 0 && cached_url != NULL) { if (token_url != NULL && strcmp(cached_url, token_url) == 0) { - if (strlen(pin) >= sizeof(cached_pin)) { + if (strlen(cached_pin) >= pin_max) { fprintf(stderr, "Too long PIN given\n"); exit(1); } |