From: Timo Sirainen Date: Mon, 5 Jul 2010 11:00:58 +0000 (+0100) Subject: module_dir_load(): Don't crash with "" plugin list. X-Git-Tag: 2.0.rc2~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4ff610b86a769f92ad15069a93e2d046a48043c;p=thirdparty%2Fdovecot%2Fcore.git module_dir_load(): Don't crash with "" plugin list. Patch by Stephan Bosch. --HG-- branch : HEAD --- diff --git a/src/lib/module-dir.c b/src/lib/module-dir.c index 450508a133..b55f8909d9 100644 --- a/src/lib/module-dir.c +++ b/src/lib/module-dir.c @@ -252,6 +252,9 @@ static void module_names_fix(const char **module_names) { unsigned int i, j; + if (module_names[0] == NULL) + return; + /* allow giving the module names also in non-base form. convert them in here. */ for (i = 0; module_names[i] != NULL; i++)