From 9e72a91220c78511eee179c3ff2abc0ee1556957 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 26 Jan 2017 18:10:02 +0000 Subject: [PATCH] [Fix] Another try to fix 0 length maps Issue: #1374 Reported by: @aeroclown --- src/libutil/map.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libutil/map.c b/src/libutil/map.c index 3266b5cf3..6fb04d4e5 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -702,6 +702,9 @@ read_map_file (struct rspamd_map *map, struct file_map_data *data, map->read_callback (bytes, len, &periodic->cbdata, TRUE); } } + else { + map->read_callback (NULL, 0, &periodic->cbdata, TRUE); + } munmap (bytes, len); -- 2.39.5