[dovecot-cvs] dovecot/src/lib ostream-file.c,1.37,1.38

cras at dovecot.org cras at dovecot.org
Fri Oct 8 21:36:59 EEST 2004


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

Modified Files:
	ostream-file.c 
Log Message:
Don't do anything in cork() if stream is closed.



Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- ostream-file.c	23 Sep 2004 09:51:48 -0000	1.37
+++ ostream-file.c	8 Oct 2004 18:36:57 -0000	1.38
@@ -216,7 +216,7 @@
 {
 	struct file_ostream *fstream = (struct file_ostream *)stream;
 
-	if (fstream->corked != set) {
+	if (fstream->corked != set && !stream->ostream.closed) {
 		if (!fstream->no_socket_cork) {
 			if (net_set_cork(fstream->fd, set) < 0)
 				fstream->no_socket_cork = TRUE;



More information about the dovecot-cvs mailing list