[dovecot-cvs] dovecot/src/lib ioloop.c,1.36,1.37
cras at dovecot.org
cras at dovecot.org
Fri Aug 18 00:16:51 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv25766
Modified Files:
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.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- ioloop.c 17 Aug 2006 18:46:42 -0000 1.36
+++ ioloop.c 17 Aug 2006 21:16:49 -0000 1.37
@@ -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