dovecot-2.0: lib-storage: Fix to hooks with multiple plugins
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Tue Jul 20 17:02:05 EEST 2010
    
    
  
details:   http://hg.dovecot.org/dovecot-2.0/rev/5179e8f41cf4
changeset: 11866:5179e8f41cf4
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 20 15:02:02 2010 +0100
description:
lib-storage: Fix to hooks with multiple plugins
diffstat:
 src/lib-storage/mail-storage-hooks.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r a109e140bdf5 -r 5179e8f41cf4 src/lib-storage/mail-storage-hooks.c
--- a/src/lib-storage/mail-storage-hooks.c	Tue Jul 20 14:47:39 2010 +0100
+++ b/src/lib-storage/mail-storage-hooks.c	Tue Jul 20 15:02:02 2010 +0100
@@ -176,8 +176,10 @@
 	unsigned int i;
 
 	for (i = 0; i < ctx->count; i++) {
-		if (stack->vfuncs[i] != vlast[i])
-			stack->mask[i] = vlast[i];
+		if (stack->vfuncs[i] != vlast[i]) {
+			i_assert(stack->vfuncs[i] != NULL);
+			stack->mask[i] = stack->vfuncs[i];
+		}
 	}
 }
 
    
    
More information about the dovecot-cvs
mailing list