From: Timo Sirainen Date: Sun, 30 May 2004 01:40:30 +0000 (+0300) Subject: Case insensitive lookups for mechanism names X-Git-Tag: 1.1.alpha1~4025 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c57776c06ec99ba9b0dafdbf9475ea72ea8ca134;p=thirdparty%2Fdovecot%2Fcore.git Case insensitive lookups for mechanism names --HG-- branch : HEAD --- diff --git a/src/auth/mech.c b/src/auth/mech.c index f8b11b2300..a29713ad4f 100644 --- a/src/auth/mech.c +++ b/src/auth/mech.c @@ -64,7 +64,7 @@ static struct mech_module *mech_module_find(const char *name) 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;