]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Reset line->name and full_value* fields at end of headers. Envelope parser
authorTimo Sirainen <tss@iki.fi>
Thu, 22 May 2003 23:04:41 +0000 (02:04 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 22 May 2003 23:04:41 +0000 (02:04 +0300)
was treating the EOH as duplicate of last header.

--HG--
branch : HEAD

src/lib-mail/message-parser.c

index 17ef7fec4f4e33d070deaf6b9d04d31e3d6698b4..2a0f55f3b09b214c63f31c55d634746fc5b259f0 100644 (file)
@@ -680,7 +680,8 @@ message_parse_header_next(struct message_header_parser_ctx *ctx)
        if (size == 0 || (size == 1 && msg[0] == '\r')) {
                /* end of headers */
                line->eoh = TRUE;
-               line->name_len = line->value_len = 0;
+               line->name_len = line->value_len = line->full_value_len = 0;
+               line->name = ""; line->value = line->full_value = NULL;
        } else if (line->continued) {
                line->value = msg;
                line->value_len = size;