[dovecot-cvs] dovecot/src/lib ioloop-epoll.c,1.17,1.18

tss at dovecot.org tss at dovecot.org
Fri Oct 13 23:12:56 UTC 2006


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

Modified Files:
	ioloop-epoll.c 
Log Message:
Don't pass uninitialized data in epoll data struct's union to kernel.
Doesn't matter that much, but keeps valgrind happy.



Index: ioloop-epoll.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-epoll.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- ioloop-epoll.c	10 Sep 2006 12:48:14 -0000	1.17
+++ ioloop-epoll.c	13 Oct 2006 22:12:53 -0000	1.18
@@ -92,6 +92,7 @@
 
 	first = ioloop_iolist_add(*list, io);
 
+	memset(&event, 0, sizeof(event));
 	event.data.ptr = *list;
 	event.events = epoll_event_mask(*list);
 
@@ -123,6 +124,7 @@
 	list = array_idx_modifiable(&ctx->fd_index, io->fd);
 	last = ioloop_iolist_del(*list, io);
 
+	memset(&event, 0, sizeof(event));
 	event.data.ptr = *list;
 	event.events = epoll_event_mask(*list);
 



More information about the dovecot-cvs mailing list