From 81d89f77d878ac5131ef760aef23b220e45dd435 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 13 Jun 2015 18:44:18 -0400 Subject: [PATCH] Store data in session as the last thing mag_attempt_session() was being called too early. Signed-off-by: Simo Sorce --- src/mod_auth_gssapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index 8687568..95838d3 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -709,13 +709,13 @@ static int mag_auth(request_rec *req) vtime = MIN_SESS_EXP_TIME; } mc->expiration = expiration; - if (cfg->use_sessions) { - mag_attempt_session(req, cfg, mc); - } mc->auth_type = auth_type; if (auth_type == AUTH_TYPE_BASIC) { mag_basic_cache(cfg, mc, ba_user, ba_pwd); } + if (cfg->use_sessions) { + mag_attempt_session(req, cfg, mc); + } } if (cfg->send_persist) -- 2.1.4