]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Avoid crash when closing mmapped file
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Jul 2016 12:21:18 +0000 (13:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Jul 2016 12:21:18 +0000 (13:21 +0100)
src/libstat/backends/mmaped_file.c

index 75a9a5e102a8a26c098db69b7d31523d72c6f6d1..86538039d81448196a5c8daac6ac183fe1feb9ea 100644 (file)
@@ -631,9 +631,8 @@ rspamd_mmaped_file_open (rspamd_mempool_t *pool,
        }
 
        rspamd_file_unlock (new_file->fd, FALSE);
-
        new_file->cf = stcf;
-
+       new_file->pool = pool;
        rspamd_mmaped_file_preload (new_file);
 
        g_assert (stcf->clcf != NULL);