]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: NULs weren't still handled correctly in message headers.
authorTimo Sirainen <tss@iki.fi>
Thu, 4 Aug 2011 11:12:56 +0000 (14:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 4 Aug 2011 11:12:56 +0000 (14:12 +0300)
src/plugins/fts/fts-build.c

index 03ebf7f062648ac6aa15b99397655b06b25987e7..2e7a1a5fb2ea78725ca3096ab0fbd4eb5d95e202 100644 (file)
@@ -70,6 +70,7 @@ fts_build_unstructured_header(struct fts_storage_build_context *ctx,
                        if (buf == NULL) {
                                buf = i_malloc(hdr->full_value_len);
                                memcpy(buf, data, i);
+                               data = buf;
                        }
                        buf[i] = ' ';
                } else if (buf != NULL) {