Fix module name
authorSimo Sorce <simo@redhat.com>
Sun, 9 Mar 2014 21:16:12 +0000 (17:16 -0400)
committerSimo Sorce <simo@redhat.com>
Sun, 9 Mar 2014 21:19:05 +0000 (17:19 -0400)
The module structure name used throughout the code didn't match the
name of the initialized structure, so the one used was always
uninitialized.

src/mod_auth_gssapi.c

index e6fb209..182564c 100644 (file)
@@ -34,7 +34,7 @@
 #include <apr_strings.h>
 #include <apr_base64.h>
 
-module AP_MODULE_DECLARE_DATA mag_module;
+module AP_MODULE_DECLARE_DATA auth_gssapi_module;
 
 struct mag_config {
     bool ssl_only;
@@ -110,7 +110,7 @@ static int mag_auth(request_rec *req)
         return DECLINED;
     }
 
-    cfg = ap_get_module_config(req->per_dir_config, &mag_module);
+    cfg = ap_get_module_config(req->per_dir_config, &auth_gssapi_module);
 
     if (cfg->ssl_only) {
         ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, req,