From: Simo Sorce Date: Thu, 3 Sep 2015 16:58:51 +0000 (-0400) Subject: Fix bug in handling Session Keys X-Git-Tag: v1.3.1~3 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_gssapi.git;a=commitdiff_plain;h=93fe956a5e4e2899242d18183b3e2035c46ca3b9 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 --- 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 */