dovecot-2.2-pigeonhole: lib-sieve: Fixed segfault bug in reject.

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Mon Mar 4 23:26:24 EET 2013


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/b75b00760b86
changeset: 1725:b75b00760b86
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Mon Mar 04 22:26:15 2013 +0100
description:
lib-sieve: Fixed segfault bug in reject.
Passed senv->script_context rather than senv itself. Somehow the compiler fails to warn about this.

diffstat:

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

diffs (12 lines):

diff -r 07983d15ad19 -r b75b00760b86 src/lib-sieve/sieve-actions.c
--- a/src/lib-sieve/sieve-actions.c	Sun Mar 03 18:07:30 2013 +0100
+++ b/src/lib-sieve/sieve-actions.c	Mon Mar 04 22:26:15 2013 +0100
@@ -863,7 +863,7 @@
 	T_BEGIN {
 		if ( senv->reject_mail != NULL ) {
 			result =
-				( senv->reject_mail(senv->script_context, recipient, reason) >= 0 );
+				( senv->reject_mail(senv, recipient, reason) >= 0 );
 		} else {
 			result = sieve_action_do_reject_mail(aenv, sender, recipient, reason);
 		}


More information about the dovecot-cvs mailing list