[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-uidlist.c, 1.28.2.4, 1.28.2.5

cras at dovecot.org cras at dovecot.org
Fri Jun 16 11:37:39 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	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.28.2.4
retrieving revision 1.28.2.5
diff -u -d -r1.28.2.4 -r1.28.2.5
--- dbox-uidlist.c	8 Jun 2006 18:21:12 -0000	1.28.2.4
+++ dbox-uidlist.c	16 Jun 2006 08:37:37 -0000	1.28.2.5
@@ -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