[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-uidlist.c, 1.31, 1.32

cras at dovecot.org cras at dovecot.org
Fri Jun 16 12:53:00 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv19572

Modified Files:
	dbox-uidlist.c 
Log Message:
Crashfix in error cases



Index: dbox-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-uidlist.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- dbox-uidlist.c	8 Jun 2006 18:21:12 -0000	1.31
+++ dbox-uidlist.c	16 Jun 2006 09:52:58 -0000	1.32
@@ -1098,8 +1098,8 @@
 					 &st, &file, existing)) == 0);
 
 	if (ret < 0) {
+		i_assert(file == NULL);
 		file_dotlock_delete(&dotlock);
-		dbox_file_close(file);
 		return -1;
 	}
 	file->file_seq = file_seq;



More information about the dovecot-cvs mailing list