dovecot-2.2: i_stream_read_next_line() should have also set eof=...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Mon Jan 21 14:43:14 EET 2013
    
    
  
details:   http://hg.dovecot.org/dovecot-2.2/rev/ee177df07178
changeset: 15654:ee177df07178
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 21 14:42:10 2013 +0200
description:
i_stream_read_next_line() should have also set eof=TRUE on ENOBUFS errors.
diffstat:
 src/lib/istream.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r df8fd01f355c -r ee177df07178 src/lib/istream.c
--- a/src/lib/istream.c	Mon Jan 21 14:19:21 2013 +0200
+++ b/src/lib/istream.c	Mon Jan 21 14:42:10 2013 +0200
@@ -390,6 +390,7 @@
 		switch (i_stream_read(stream)) {
 		case -2:
 			stream->stream_errno = ENOBUFS;
+			stream->eof = TRUE;
 			return NULL;
 		case -1:
 			return i_stream_last_line(stream->real_stream);
    
    
More information about the dovecot-cvs
mailing list