From: Vsevolod Stakhov Date: Thu, 7 May 2015 12:04:08 +0000 (+0100) Subject: Fix log message for unknown rules with scores. X-Git-Tag: 0.9.0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e40b90c1f443bad865d54ea488c8d12a063fd2d;p=thirdparty%2Frspamd.git Fix log message for unknown rules with scores. --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index b5684efacb..fec045e190 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -760,9 +760,11 @@ validate_cache (struct symbols_cache *cache, } if (!res) { msg_warn ( - "symbol '%s' is registered in metric but not found in cache", + "symbol '%s' has its score defined but there is no " + "corresponding rule registered", cur->data); if (strict) { + g_list_free (metric_symbols); return FALSE; } }