# HG changeset patch # User Kim Alvefur # Date 1678921603 -3600 # Node ID 85f0c6c1c24fbf46aa8723cdf141dbb3cb87c8c7 # Parent f3123cbbd8947a5183a567cfa83e8ecc0663266e mod_http_oauth2: Fix attempt to index a boolean value _This_ function signature strikes again It returns true, payload, but only passed the boolean on in place of the client, tripping up client_subset() diff -r f3123cbbd894 -r 85f0c6c1c24f mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Tue Mar 14 18:59:39 2023 +0000 +++ b/mod_http_oauth2/mod_http_oauth2.lua Thu Mar 16 00:06:43 2023 +0100 @@ -276,8 +276,8 @@ return oauth_error("invalid_scope", "unknown scope requested"); end - local client = jwt_verify(params.client_id); - if not client then + local client_ok, client = jwt_verify(params.client_id); + if not client_ok then return oauth_error("invalid_client", "incorrect credentials"); end