diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-02-12 13:02:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-02-12 13:03:57 +0000 |
commit | b00071d015999d500116ff026b209a7f4d758cdb (patch) | |
tree | 3a3d239139ebfb9b45525ee0802268f0758ee1b3 /src/libserver/maps/map.c | |
parent | 7c3a7c13650ec27b5beb5f6ef09e51cc94102a0b (diff) | |
download | rspamd-b00071d015999d500116ff026b209a7f4d758cdb.tar.gz rspamd-b00071d015999d500116ff026b209a7f4d758cdb.zip |
[Minor] Store map pointer in a backend structure
Diffstat (limited to 'src/libserver/maps/map.c')
-rw-r--r-- | src/libserver/maps/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/maps/map.c b/src/libserver/maps/map.c index fae277bcd..6348ca8b2 100644 --- a/src/libserver/maps/map.c +++ b/src/libserver/maps/map.c @@ -2802,6 +2802,7 @@ rspamd_map_add (struct rspamd_config *cfg, rspamd_map_calculate_hash (map); msg_info_map ("added map %s", bk->uri); + bk->map = map; cfg->maps = g_list_prepend (cfg->maps, map); @@ -2842,6 +2843,8 @@ rspamd_map_add_backend (struct rspamd_map *map, struct rspamd_map_backend *bk) else { g_ptr_array_add (map->backends, bk); } + + bk->map = map; } struct rspamd_map* |