[dovecot-cvs] dovecot/src/lib-storage/index index-save.c,1.26,1.27

cras at procontrol.fi cras at procontrol.fi
Thu Feb 20 21:51:46 EET 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv7958/index

Modified Files:
	index-save.c 
Log Message:
crashfix



Index: index-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-save.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- index-save.c	19 Feb 2003 23:37:23 -0000	1.26
+++ index-save.c	20 Feb 2003 19:51:44 -0000	1.27
@@ -162,7 +162,7 @@
 	failed = FALSE;
 	for (;;) {
 		data = i_stream_get_data(input, &size);
-		if (!failed) {
+		if (!failed && size > 0) {
 			ret = write_func(output, data, size);
 			if (ret < 0) {
 				set_write_error(storage, output, path);




More information about the dovecot-cvs mailing list