[dovecot-cvs] dovecot/src/lib istream.c,1.29,1.30

cras at dovecot.org cras at dovecot.org
Fri Sep 30 23:26:00 EEST 2005


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

Modified Files:
	istream.c 
Log Message:
i_stream_stat() should return NULL for closed istreams



Index: istream.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- istream.c	30 Sep 2005 20:10:38 -0000	1.29
+++ istream.c	30 Sep 2005 20:25:58 -0000	1.30
@@ -114,6 +114,9 @@
 {
 	struct _istream *_stream = stream->real_stream;
 
+	if (stream->closed)
+		return NULL;
+
 	return _stream->stat(_stream);
 }
 



More information about the dovecot-cvs mailing list