changeset 10012:e62d4a8c6035 HEAD

auth: Fixed compiling with --with-gssapi=plugin
author Timo Sirainen <tss@iki.fi>
date Fri, 09 Oct 2009 14:03:57 -0400
parents 80a99cd5148f
children 22fe48dbed89
files src/auth/mech-gssapi.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	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)
 {
 #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);