From 3d35da89a2a13b060a779e9d663a3d94f2028801 Mon Sep 17 00:00:00 2001 From: Patrik Wehrli Date: Tue, 21 Jul 2020 15:13:30 +0200 Subject: [PATCH] Read and use config value --- mod_authnz_jwt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod_authnz_jwt.c b/mod_authnz_jwt.c index 7e79f67..a8f983c 100644 --- a/mod_authnz_jwt.c +++ b/mod_authnz_jwt.c @@ -1110,10 +1110,11 @@ static int auth_jwt_authn_with_token(request_rec *r){ } if(delivery_type & 4 && !token_str){ + int cookie_remove = get_config_int_value(r, dir_cookie_remove); const char* cookie_name = (char *)get_config_value(r, dir_cookie_name); const char* cookieToken; - ap_cookie_read(r, cookie_name, &token_str, dir_cookie_remove); + ap_cookie_read(r, cookie_name, &token_str, cookie_remove); if(!token_str) { logCode = APLOGNO(55409);