aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-26 18:10:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-26 18:10:02 +0000
commit9e72a91220c78511eee179c3ff2abc0ee1556957 (patch)
tree7ada0248ac6b68a84cb4cdc1ff473feb19d87d51
parentf481734fcc53a9eb79329b4aa35717578a4cd9c9 (diff)
downloadrspamd-9e72a91220c78511eee179c3ff2abc0ee1556957.tar.gz
rspamd-9e72a91220c78511eee179c3ff2abc0ee1556957.zip
[Fix] Another try to fix 0 length maps
Issue: #1374 Reported by: @aeroclown
-rw-r--r--src/libutil/map.c3
1 files changed, 3 insertions, 0 deletions
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);