]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not stop when cannot parse query string in clang plugin
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 3 May 2019 15:22:14 +0000 (16:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 3 May 2019 15:22:14 +0000 (16:22 +0100)
clang-plugin/printf_check.cc

index 4bb0f33a81810745d8dcc931a7926b6fcb777dc3..76b306b51bc95fee6dd931deb743620cef6af16a 100644 (file)
@@ -392,7 +392,8 @@ namespace rspamd {
                                if (!query->isEvaluatable (*pcontext)) {
                                        print_warning (std::string ("cannot evaluate query"),
                                                        E, this->pcontext, this->ci);
-                                       return false;
+                                       /* It is not assumed to be an error */
+                                       return true;
                                }
 
                                clang::Expr::EvalResult r;