diff options
author | Simo Sorce <simo@redhat.com> | 2014-10-13 16:35:57 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-10-13 16:35:57 -0400 |
commit | bb7c20bc7f487b52c79ec0279c3f83d13582f9c2 (patch) | |
tree | 28086cbb635c27815d493551768a62549ee00a5c | |
parent | 1d9d2468733fdfffa9fcaa811751e741948aab1d (diff) | |
download | mod_auth_gssapi-bb7c20bc7f487b52c79ec0279c3f83d13582f9c2.tar.gz mod_auth_gssapi-bb7c20bc7f487b52c79ec0279c3f83d13582f9c2.tar.xz mod_auth_gssapi-bb7c20bc7f487b52c79ec0279c3f83d13582f9c2.zip |
Attempt to use sessions only when they are enabled
-rw-r--r-- | src/mod_auth_gssapi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index 5ce9077..c33ea34 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -209,7 +209,9 @@ static int mag_auth(request_rec *req) } /* if available, session always supersedes connection bound data */ - mag_check_session(req, cfg, &mc); + if (cfg->use_sessions) { + mag_check_session(req, cfg, &mc); + } if (mc) { /* register the context in the memory pool, so it can be freed @@ -335,7 +337,9 @@ static int mag_auth(request_rec *req) vtime = MIN_SESS_EXP_TIME; } mc->expiration = time(NULL) + vtime; - mag_attempt_session(req, cfg, mc); + if (cfg->use_sessions) { + mag_attempt_session(req, cfg, mc); + } } ret = OK; |