[dovecot-cvs] dovecot/src/auth mech.c,1.22,1.23

cras at procontrol.fi cras at procontrol.fi
Sun May 30 04:40:32 EEST 2004


Update of /home/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv4848/auth

Modified Files:
	mech.c 
Log Message:
Case insensitive lookups for mechanism names



Index: mech.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/mech.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- a/mech.c	29 May 2004 21:40:30 -0000	1.22
+++ b/mech.c	30 May 2004 01:40:30 -0000	1.23
@@ -64,7 +64,7 @@
 	struct mech_module_list *list;
 
 	for (list = mech_modules; list != NULL; list = list->next) {
-		if (strcmp(list->module.mech_name, name) == 0)
+		if (strcasecmp(list->module.mech_name, name) == 0)
 			return &list->module;
 	}
 	return NULL;



More information about the dovecot-cvs mailing list