From 93fe956a5e4e2899242d18183b3e2035c46ca3b9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 3 Sep 2015 12:58:51 -0400 Subject: [PATCH] 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 --- src/mod_auth_gssapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.1.4