]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Core: Fix etags support
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Feb 2019 11:19:42 +0000 (11:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Feb 2019 11:19:42 +0000 (11:19 +0000)
Issue: #2749
Closes: #2749
src/libutil/map.c

index d96cdc2adcabd85eca6f67aa9c8faa0fd25f68a6..f13f484d8546f5ac3dd383b6a6d9dd0446720ec6 100644 (file)
@@ -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) {