From: Vsevolod Stakhov Date: Thu, 28 Jul 2016 12:21:18 +0000 (+0100) Subject: [Fix] Avoid crash when closing mmapped file X-Git-Tag: 1.3.1~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=244315dce16f26a2acec8e1cd1ed21bda860fa97;p=thirdparty%2Frspamd.git [Fix] Avoid crash when closing mmapped file --- diff --git a/src/libstat/backends/mmaped_file.c b/src/libstat/backends/mmaped_file.c index 75a9a5e102..86538039d8 100644 --- a/src/libstat/backends/mmaped_file.c +++ b/src/libstat/backends/mmaped_file.c @@ -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);