From 6af9f27166aefa0c253486f769fac428d8fdbc20 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 11 Feb 2016 11:02:42 +0000 Subject: Fix couple of issues found by coverity scan --- src/libstat/backends/redis_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstat/backends/redis_backend.c') 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; } -- cgit v1.2.3