dovecot-2.0: auth: Fixed compiling with --with-gssapi=plugin

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 9 21:04:05 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/e62d4a8c6035
changeset: 10012:e62d4a8c6035
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 09 14:03:57 2009 -0400
description:
auth: Fixed compiling with --with-gssapi=plugin

diffstat:

1 file changed, 5 insertions(+), 5 deletions(-)
src/auth/mech-gssapi.c |   10 +++++-----

diffs (27 lines):

diff -r 80a99cd5148f -r e62d4a8c6035 src/auth/mech-gssapi.c
--- a/src/auth/mech-gssapi.c	Fri Oct 09 13:45:27 2009 -0400
+++ b/src/auth/mech-gssapi.c	Fri Oct 09 14:03:57 2009 -0400
@@ -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_deinit(void)
 void mech_gssapi_deinit(void)
 {
 #ifdef HAVE_GSSAPI_SPNEGO
-	struct mech_module *mech;
-
-	mech = mech_module_find(mech_gssapi_spnego.name);
-	if (mech != NULL && mech.auth_new == mech_gssapi_auth_new)
+	const struct mech_module *mech;
+
+	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);


More information about the dovecot-cvs mailing list