]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: Fix to previous message_header_encode() commit
authorTimo Sirainen <tss@iki.fi>
Sun, 11 May 2014 19:31:54 +0000 (22:31 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 11 May 2014 19:31:54 +0000 (22:31 +0300)
src/lib-mail/message-header-encode.c

index b0c511d2f7eedf4392786e698dd653ec081417b0..38f04d96b6acc79207802a610b1aa3d332b118e8 100644 (file)
@@ -234,6 +234,8 @@ void message_header_encode_data(const unsigned char *input, unsigned int len,
                if (next_line_input[0] == '\r') {
                        cr = TRUE;
                        i++;
+               } else {
+                       cr = FALSE;
                }
                i_assert(next_line_input[i] == '\n');
                if (++i == next_line_len)