]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
module_dir_load(): Don't crash with "" plugin list.
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Jul 2010 11:00:58 +0000 (12:00 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Jul 2010 11:00:58 +0000 (12:00 +0100)
Patch by Stephan Bosch.

--HG--
branch : HEAD

src/lib/module-dir.c

index 450508a133ca52d564f2189a20328a4ccd32a842..b55f8909d956785733c0a5564062de76160c7408 100644 (file)
@@ -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++)