dovecot-2.0-pigeonhole: Fixed memset argument mixup in enotify e...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Mon Mar 8 19:49:06 EET 2010


details:   http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/940554ef4a55
changeset: 1240:940554ef4a55
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Mon Mar 08 18:48:54 2010 +0100
description:
Fixed memset argument mixup in enotify extension.

diffstat:

 src/lib-sieve/plugins/enotify/cmd-notify.c         |  4 ++--
 src/lib-sieve/plugins/enotify/ext-enotify-common.c |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r 35a382739679 -r 940554ef4a55 src/lib-sieve/plugins/enotify/cmd-notify.c
--- a/src/lib-sieve/plugins/enotify/cmd-notify.c	Sun Feb 28 21:50:04 2010 +0100
+++ b/src/lib-sieve/plugins/enotify/cmd-notify.c	Mon Mar 08 18:48:54 2010 +0100
@@ -541,7 +541,7 @@
 	if ( nmth_def->action_check_duplicates == NULL )
 		return 0;
 
-	memset(&nenv, sizeof(nenv), 0);
+	memset(&nenv, 0, sizeof(nenv));
 	nenv.method = nact->method;	
 	nenv.ehandler = sieve_prefix_ehandler_create
 		(sieve_result_get_error_handler(renv->result), act->location, "notify");
@@ -594,7 +594,7 @@
 
 	if ( method->def != NULL && method->def->action_execute != NULL )	{	
 		/* Compose log structure */
-		memset(&nenv, sizeof(nenv), 0);
+		memset(&nenv, 0, sizeof(nenv));
 		nenv.method = method;	
 		nenv.scriptenv = aenv->scriptenv;
 		nenv.msgdata = aenv->msgdata;
diff -r 35a382739679 -r 940554ef4a55 src/lib-sieve/plugins/enotify/ext-enotify-common.c
--- a/src/lib-sieve/plugins/enotify/ext-enotify-common.c	Sun Feb 28 21:50:04 2010 +0100
+++ b/src/lib-sieve/plugins/enotify/ext-enotify-common.c	Mon Mar 08 18:48:54 2010 +0100
@@ -321,7 +321,7 @@
 	bool result = TRUE, check = TRUE;
 	
 	/* Compose log structure */
-	memset(&nenv, sizeof(nenv), 0);
+	memset(&nenv, 0, sizeof(nenv));
 	nenv.method = method;	
 	nenv.ehandler = sieve_prefix_ehandler_create
 		(sieve_validator_error_handler(valdtr), 
@@ -395,7 +395,7 @@
 	if ( method->def == NULL ) return TRUE;
 
 	/* Compose log structure */
-	memset(&nenv, sizeof(nenv), 0);
+	memset(&nenv, 0, sizeof(nenv));
 	nenv.method = method;	
 	
 	/* Check URI itself */


More information about the dovecot-cvs mailing list