projects
/
mod_auth_gssapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1d9d246
)
Attempt to use sessions only when they are enabled
author
Simo Sorce
<simo@redhat.com>
Mon, 13 Oct 2014 20:35:57 +0000
(16:35 -0400)
committer
Simo Sorce
<simo@redhat.com>
Mon, 13 Oct 2014 20:35:57 +0000
(16:35 -0400)
src/mod_auth_gssapi.c
patch
|
blob
|
history
diff --git
a/src/mod_auth_gssapi.c
b/src/mod_auth_gssapi.c
index
5ce9077
..
c33ea34
100644
(file)
--- 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 */
}
/* 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
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;
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;
}
ret = OK;