Mercurial > dovecot > core-2.2
changeset 18971:4707f1e7602c
fts-solr: Fix to previous memory leak fix - second request was failing.
Duplicated data was sent to Solr because string wasn't truncated.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 18 Aug 2015 23:17:47 +0300 |
parents | 9765b87823df |
children | ba4ac54e79a7 |
files | src/plugins/fts-solr/fts-backend-solr.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/fts-solr/fts-backend-solr.c Tue Aug 18 23:07:19 2015 +0300 +++ b/src/plugins/fts-solr/fts-backend-solr.c Tue Aug 18 23:17:47 2015 +0300 @@ -340,6 +340,7 @@ solr_connection_post_more(ctx->post, str_data(ctx->cmd), str_len(ctx->cmd)); + str_truncate(ctx->cmd, 0); return solr_connection_post_end(&ctx->post); }