]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fixed compiling with --with-gssapi=plugin
authorTimo Sirainen <tss@iki.fi>
Fri, 9 Oct 2009 18:03:57 +0000 (14:03 -0400)
committerTimo Sirainen <tss@iki.fi>
Fri, 9 Oct 2009 18:03:57 +0000 (14:03 -0400)
--HG--
branch : HEAD

src/auth/mech-gssapi.c

index 1fdfc20f16c4afc577da296cbc4b4cb6fcd05dab..80ce19e87c2c3f07bcc9dba1902c10573c275df0 100644 (file)
@@ -666,7 +666,7 @@ void mech_gssapi_init(void)
        mech_register_module(&mech_gssapi);
 #ifdef HAVE_GSSAPI_SPNEGO
        /* load if we already didn't load it using winbind */
-       if (mech_module_find(mech_gssapi_spnego.name) == NULL)
+       if (mech_module_find(mech_gssapi_spnego.mech_name) == NULL)
                mech_register_module(&mech_gssapi_spnego);
 #endif
 }
@@ -674,10 +674,10 @@ void mech_gssapi_init(void)
 void mech_gssapi_deinit(void)
 {
 #ifdef HAVE_GSSAPI_SPNEGO
-       struct mech_module *mech;
+       const struct mech_module *mech;
 
-       mech = mech_module_find(mech_gssapi_spnego.name);
-       if (mech != NULL && mech.auth_new == mech_gssapi_auth_new)
+       mech = mech_module_find(mech_gssapi_spnego.mech_name);
+       if (mech != NULL && mech->auth_new == mech_gssapi_auth_new)
                mech_unregister_module(&mech_gssapi_spnego);
 #endif
        mech_unregister_module(&mech_gssapi);