[dovecot-cvs] dovecot/src/deliver deliver.c, 1.41, 1.42 mail-send.c, 1.5, 1.6

tss at dovecot.org tss at dovecot.org
Fri Dec 15 16:55:33 UTC 2006


Update of /var/lib/cvs/dovecot/src/deliver
In directory talvi:/tmp/cvs-serv346/deliver

Modified Files:
	deliver.c mail-send.c 
Log Message:
Added context parameter type safety checks for most callback APIs.



Index: deliver.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/deliver.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- deliver.c	10 Dec 2006 12:35:02 -0000	1.41
+++ deliver.c	15 Dec 2006 16:55:30 -0000	1.42
@@ -400,10 +400,10 @@
 	lib_signals_init();
         lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
         lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
-        lib_signals_ignore(SIGPIPE);
-        lib_signals_set_handler(SIGALRM, FALSE, NULL, NULL);
+        lib_signals_ignore(SIGPIPE, TRUE);
+        lib_signals_ignore(SIGALRM, FALSE);
 #ifdef SIGXFSZ
-	lib_signals_set_handler(SIGXFSZ, FALSE, NULL, NULL);
+        lib_signals_ignore(SIGXFSZ, TRUE);
 #endif
 
 	/* Clean up environment. */

Index: mail-send.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/deliver/mail-send.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- mail-send.c	12 Nov 2006 21:31:11 -0000	1.5
+++ mail-send.c	15 Dec 2006 16:55:30 -0000	1.6
@@ -107,7 +107,7 @@
 	    		HEADER_FILTER_EXCLUDE | HEADER_FILTER_NO_CR |
 			HEADER_FILTER_HIDE_BODY, exclude_headers,
 			sizeof(exclude_headers) / sizeof(exclude_headers[0]),
-			NULL, NULL);
+			null_header_filter_callback, NULL);
 
 	    while ((ret = i_stream_read_data(input, &data, &size, 0)) > 0) {
 		    if (fwrite(data, size, 1, f) == 0)
@@ -146,7 +146,8 @@
     input = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE |
                                           HEADER_FILTER_NO_CR, hide_headers,
                                           sizeof(hide_headers) /
-                                          sizeof(hide_headers[0]), NULL, NULL);
+					  sizeof(hide_headers[0]),
+					  null_header_filter_callback, NULL);
 
     while ((ret = i_stream_read_data(input, &data, &size, 0)) > 0) {
 	    if (fwrite(data, size, 1, f) == 0)



More information about the dovecot-cvs mailing list