]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Another try to fix 0 length maps
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Jan 2017 18:10:02 +0000 (18:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Jan 2017 18:10:02 +0000 (18:10 +0000)
Issue: #1374
Reported by: @aeroclown

src/libutil/map.c

index 3266b5cf33e99e1c249bcfa7b8448904a93bce33..6fb04d4e5af4ca1b80c575408d45fa4ab67aed69 100644 (file)
@@ -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);