From: Timo Sirainen Date: Fri, 9 Oct 2009 18:03:57 +0000 (-0400) Subject: auth: Fixed compiling with --with-gssapi=plugin X-Git-Tag: 2.0.alpha1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bc82073c6bc12195e4bb63c11ce546fdc0e8db3;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed compiling with --with-gssapi=plugin --HG-- branch : HEAD --- diff --git a/src/auth/mech-gssapi.c b/src/auth/mech-gssapi.c index 1fdfc20f16..80ce19e87c 100644 --- a/src/auth/mech-gssapi.c +++ b/src/auth/mech-gssapi.c @@ -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);