From: Vsevolod Stakhov Date: Mon, 11 Feb 2019 11:19:42 +0000 (+0000) Subject: [Fix] Core: Fix etags support X-Git-Tag: 1.9.0~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1ca6816cfd2a16156c75019293dd3f5b996a0802;p=rspamd.git [Fix] Core: Fix etags support Issue: #2749 Closes: #2749 --- diff --git a/src/libutil/map.c b/src/libutil/map.c index d96cdc2ad..f13f484d8 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -664,9 +664,10 @@ read_data: if (cbd->data->etag) { /* Remove old etag */ rspamd_fstring_free (cbd->data->etag); - cbd->data->etag = rspamd_fstring_new_init (etag_hdr->begin, - etag_hdr->len); } + + cbd->data->etag = rspamd_fstring_new_init (etag_hdr->begin, + etag_hdr->len); } else { if (cbd->data->etag) {