aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-26 13:01:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-10-26 13:01:54 +0000
commit2d07ce2339f00513906be2c9fa9aa4e64d36c48b (patch)
tree3bff82657faba82ff6b9da6abebe4e1acb511a06
parent1f3a12d224a2b591339bf30a914f64c68cd525d4 (diff)
downloadrspamd-2d07ce2339f00513906be2c9fa9aa4e64d36c48b.tar.gz
rspamd-2d07ce2339f00513906be2c9fa9aa4e64d36c48b.zip
[Minor] Grrr for grrr
-rw-r--r--src/libserver/maps/map_helpers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/maps/map_helpers.c b/src/libserver/maps/map_helpers.c
index e642682ee..de6b849f3 100644
--- a/src/libserver/maps/map_helpers.c
+++ b/src/libserver/maps/map_helpers.c
@@ -537,7 +537,7 @@ rspamd_map_helper_insert_radix_resolve (gpointer st, gconstpointer key, gconstpo
}
else {
msg_warn_map ("duplicate radix entry found for map %s: %s (old value: '%s', new: '%s')",
- map->name, key, kh_value (r->htb, k), val);
+ map->name, key, val->value, value);
}
nk = kh_key (r->htb, k).begin;
@@ -591,7 +591,7 @@ rspamd_map_helper_insert_hash (gpointer st, gconstpointer key, gconstpointer val
}
else {
msg_warn_map ("duplicate hash entry found for map %s: %s (old value: '%s', new: '%s')",
- map->name, key, kh_value (ht->htb, k), val);
+ map->name, key, val->value, value);
}
}
@@ -642,9 +642,9 @@ rspamd_map_helper_insert_re (gpointer st, gconstpointer key, gconstpointer value
/* Always warn about regexp duplicate as it's likely a bad mistake */
msg_warn_map ("duplicate re entry found for map %s: %s (old value: '%s', new: '%s')",
- map->name, key, kh_value (re_map->htb, k)->value, val);
+ map->name, key, val->value, value);
- if (strcmp (kh_value (re_map->htb, k)->value, val->value) == 0) {
+ if (strcmp (val->value, value) == 0) {
/* Same value, skip */
return;
}