]> source.dussan.org Git - rspamd.git/commitdiff
Fix log message for unknown rules with scores.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 7 May 2015 12:04:08 +0000 (13:04 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 7 May 2015 12:04:08 +0000 (13:04 +0100)
src/libserver/symbols_cache.c

index b5684efacbff9106c00f0b314ee6c42fb5393a03..fec045e1908b8da2592f82261a801545df50efcf 100644 (file)
@@ -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;
                        }
                }