[dovecot-cvs] dovecot/src/lib ostream-crlf.c,1.6,1.7

cras at dovecot.org cras at dovecot.org
Wed Aug 25 11:25:05 EEST 2004


Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv14600/lib

Modified Files:
	ostream-crlf.c 
Log Message:
send_istream(): Don't return -1 if input stream just didn't contain anything.



Index: ostream-crlf.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ostream-crlf.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ostream-crlf.c	23 Aug 2004 19:26:36 -0000	1.6
+++ ostream-crlf.c	25 Aug 2004 08:25:03 -0000	1.7
@@ -336,7 +336,7 @@
 			return sent;
 	}
 
-	return sent == 0 ? -1 : (ssize_t)sent;
+	return sent == 0 && instream->stream_errno != 0 ? -1 : (ssize_t)sent;
 }
 
 static struct crlf_ostream *



More information about the dovecot-cvs mailing list