aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/backends
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-18 14:26:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-18 14:26:46 +0100
commit71103c80dcce4e8557178efbebd9ba9b7221d4b6 (patch)
treedaa631c5249a042febdd7066cfb8cef7f12383ae /src/libstat/backends
parentbae6532769d959d4cc02959a89970f515d71b856 (diff)
downloadrspamd-71103c80dcce4e8557178efbebd9ba9b7221d4b6.tar.gz
rspamd-71103c80dcce4e8557178efbebd9ba9b7221d4b6.zip
[Minor] Allow 'expire' alias for 'expiry'
Diffstat (limited to 'src/libstat/backends')
-rw-r--r--src/libstat/backends/redis_backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index d520036b1..7f76eb831 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -1208,7 +1208,7 @@ rspamd_redis_try_ucl (struct redis_stat_ctx *backend,
backend->new_schema = FALSE;
}
- elt = ucl_object_lookup (obj, "expiry");
+ elt = ucl_object_lookup_any (obj, "expiry", "expire", NULL);
if (elt) {
backend->expiry = ucl_object_toint (elt);
}