dovecot-2.0: istream-crlf: Fixed assert-crash.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 14 17:22:40 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/2e1226259979
changeset: 12113:2e1226259979
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 14 15:22:37 2010 +0100
description:
istream-crlf: Fixed assert-crash.
diffstat:
src/lib/istream-crlf.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (19 lines):
diff -r 2d80fc07124a -r 2e1226259979 src/lib/istream-crlf.c
--- a/src/lib/istream-crlf.c Tue Sep 14 14:45:01 2010 +0100
+++ b/src/lib/istream-crlf.c Tue Sep 14 15:22:37 2010 +0100
@@ -93,11 +93,11 @@
if (src[-1] != '\r')
*dest++ = '\r';
- if (dest < dest_end) {
- *dest++ = '\n';
- src++;
- }
+ if (dest == dest_end)
+ break;
+ *dest++ = '\n';
+ src++;
i_assert(src == ptr + 1);
}
More information about the dovecot-cvs
mailing list