summaryrefslogtreecommitdiffstats
path: root/src/mod_auth_gssapi.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-09-03 12:58:51 -0400
committerSimo Sorce <simo@redhat.com>2015-09-03 12:59:46 -0400
commit93fe956a5e4e2899242d18183b3e2035c46ca3b9 (patch)
tree8b68b6d4bfb77fa8f34d6b64013675b85592953c /src/mod_auth_gssapi.c
parent4d75af14e3f703ec0cfeeb4ffb998619449c859a (diff)
downloadmod_auth_gssapi-93fe956a5e4e2899242d18183b3e2035c46ca3b9.tar.gz
mod_auth_gssapi-93fe956a5e4e2899242d18183b3e2035c46ca3b9.tar.xz
mod_auth_gssapi-93fe956a5e4e2899242d18183b3e2035c46ca3b9.zip
Fix bug in handling Session Keys
A check inversion in 86661d07812b010b8cf664c2dab596be15ff1e31 caused the specified session key to be ignored and a crash when none was specified. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src/mod_auth_gssapi.c')
-rw-r--r--src/mod_auth_gssapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c
index 6057a44..a480997 100644
--- a/src/mod_auth_gssapi.c
+++ b/src/mod_auth_gssapi.c
@@ -648,7 +648,7 @@ struct mag_req_cfg *mag_init_cfg(request_rec *req)
req_cfg->desired_mechs = scfg->default_mechs;
}
- if (!req_cfg->cfg->mag_skey) {
+ if (req_cfg->cfg->mag_skey) {
req_cfg->mag_skey = req_cfg->cfg->mag_skey;
} else {
/* Use server random key if not explicitly configured */