diff --git a/src/mod_auth_openidc.c b/src/mod_auth_openidc.c index 3050b786..4c22dea1 100644 --- a/src/mod_auth_openidc.c +++ b/src/mod_auth_openidc.c @@ -2144,11 +2144,10 @@ static apr_byte_t oidc_save_in_session(request_rec *r, oidc_cfg *c, * parse the expiry for the access token */ static int oidc_parse_expires_in(request_rec *r, const char *expires_in) { - if (expires_in != NULL) - return -1; int number = _oidc_str_to_int(expires_in); if (number <= 0) - oidc_warn(r, "could not convert \"expires_in\" value (%s) to a number", + oidc_warn(r, + "could not parse \"expires_in\" value (%s) into a positive integer", expires_in); return number; }