dovecot-2.2: i_stream_read_next_line(): Set also errno=ENOBUFS o...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 24 10:49:58 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/aec6f57b8cf8
changeset: 17260:aec6f57b8cf8
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 24 13:49:25 2014 +0300
description:
i_stream_read_next_line(): Set also errno=ENOBUFS on too large line.
Some callers assume that errno is set to same as istream->stream_errno
diffstat:
src/lib/istream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6269063f8408 -r aec6f57b8cf8 src/lib/istream.c
--- a/src/lib/istream.c Wed Apr 23 23:26:49 2014 +0300
+++ b/src/lib/istream.c Thu Apr 24 13:49:25 2014 +0300
@@ -426,7 +426,7 @@
switch (i_stream_read(stream)) {
case -2:
- stream->stream_errno = ENOBUFS;
+ stream->stream_errno = errno = ENOBUFS;
stream->eof = TRUE;
return NULL;
case -1:
More information about the dovecot-cvs
mailing list