[dovecot-cvs] dovecot/src/lib ioloop.c,1.35.2.1,1.35.2.2
cras at dovecot.org
cras at dovecot.org
Fri Aug 18 00:16:50 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv29941
Modified Files:
Tag: branch_1_0
ioloop.c
Log Message:
io_add_notify() didn't set refcount so io_remove() crashed for it.
Index: ioloop.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop.c,v
retrieving revision 1.35.2.1
retrieving revision 1.35.2.2
diff -u -d -r1.35.2.1 -r1.35.2.2
--- ioloop.c 17 Aug 2006 18:46:41 -0000 1.35.2.1
+++ ioloop.c 17 Aug 2006 21:16:48 -0000 1.35.2.2
@@ -53,6 +53,7 @@
if (io == NULL)
return NULL;
+ io->refcount = 1;
io->condition |= IO_NOTIFY;
io->next = current_ioloop->notifys;
current_ioloop->notifys = io;
More information about the dovecot-cvs
mailing list