[dovecot-cvs] dovecot/src/lib ostream-file.c,1.32,1.33

cras at dovecot.org cras at dovecot.org
Fri Sep 3 12:00:21 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv3644

Modified Files:
	ostream-file.c 
Log Message:
_send_istream() might have crashed.



Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- ostream-file.c	31 Aug 2004 09:14:14 -0000	1.32
+++ ostream-file.c	3 Sep 2004 09:00:18 -0000	1.33
@@ -532,12 +532,12 @@
 			return -1;
 
 		if (skip_size > 0) {
-			update_buffer(foutstream, ret);
-
 			if ((size_t)ret < skip_size) {
+				update_buffer(foutstream, ret);
 				skip_size -= ret;
 				ret = 0;
 			} else {
+				update_buffer(foutstream, skip_size);
 				ret -= skip_size;
 				skip_size = 0;
 			}



More information about the dovecot-cvs mailing list