aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-11 11:02:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-11 11:02:42 +0000
commit6af9f27166aefa0c253486f769fac428d8fdbc20 (patch)
tree9583da7b235dffc4bbc2c1952359d58439d30f75 /src/libstat
parent34b41a21d7b4bcca1f662b4bdbd8618397e10bb5 (diff)
downloadrspamd-6af9f27166aefa0c253486f769fac428d8fdbc20.tar.gz
rspamd-6af9f27166aefa0c253486f769fac428d8fdbc20.zip
Fix couple of issues found by coverity scan
Diffstat (limited to 'src/libstat')
-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 406b76ab5..61644d004 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -240,7 +240,7 @@ rspamd_redis_expand_object (const gchar *pattern,
}
}
- if (target == NULL) {
+ if (target == NULL || task == NULL) {
return tlen;
}