dovecot-2.2-pigeonhole: lib-sieve: fixed potential action duplic...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Fri Aug 10 00:01:49 EEST 2012


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/837c108f0363
changeset: 1648:837c108f0363
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Aug 07 00:34:12 2012 +0200
description:
lib-sieve: fixed potential action duplication bug.

diffstat:

 src/lib-sieve/sieve-result.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b25d4208949f -r 837c108f0363 src/lib-sieve/sieve-result.c
--- a/src/lib-sieve/sieve-result.c	Mon Aug 06 23:14:19 2012 +0200
+++ b/src/lib-sieve/sieve-result.c	Tue Aug 07 00:34:12 2012 +0200
@@ -588,7 +588,7 @@
 	raction->action.location = p_strdup(result->pool, action.location);
 	raction->keep = keep;
 
-	if ( raction->prev == NULL ) {
+	if ( raction->prev == NULL && raction != result->first_action ) {
 		/* Add */
 		if ( result->first_action == NULL ) {
 			result->first_action = raction;


More information about the dovecot-cvs mailing list