dovecot-2.0: module_dir_load(): Don't crash with "" plugin list.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 5 14:01:03 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/bc35bf7f7502
changeset: 11725:bc35bf7f7502
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 05 12:00:58 2010 +0100
description:
module_dir_load(): Don't crash with "" plugin list.
Patch by Stephan Bosch.
diffstat:
src/lib/module-dir.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 4a4f7add34d9 -r bc35bf7f7502 src/lib/module-dir.c
--- a/src/lib/module-dir.c Sat Jul 03 15:53:54 2010 +0100
+++ b/src/lib/module-dir.c Mon Jul 05 12:00:58 2010 +0100
@@ -252,6 +252,9 @@
{
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++)
More information about the dovecot-cvs
mailing list