diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_tokenauth.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_tokenauth.lua b/plugins/mod_tokenauth.lua index 74d68e75..04cc37a1 100644 --- a/plugins/mod_tokenauth.lua +++ b/plugins/mod_tokenauth.lua @@ -123,7 +123,8 @@ local function clear_expired_grant_tokens(grant, now) local updated; now = now or os.time(); for secret, token_info in pairs(grant.tokens) do - if token_info.expires < now then + local expires = token_info.expires; + if expires and expires < now then grant.tokens[secret] = nil; updated = true; end |