aboutsummaryrefslogtreecommitdiffstats
path: root/clang-plugin
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-03 16:22:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-03 16:22:14 +0100
commitc77208a34e9c1a65bbb96cb61f01e5ceaa798eb3 (patch)
tree377965b97908ea46ed7159b3e6af2a28e404fab2 /clang-plugin
parent42f5b2d27e49b61700d91c016a91ff49bd40eb0e (diff)
downloadrspamd-c77208a34e9c1a65bbb96cb61f01e5ceaa798eb3.tar.gz
rspamd-c77208a34e9c1a65bbb96cb61f01e5ceaa798eb3.zip
[Minor] Do not stop when cannot parse query string in clang plugin
Diffstat (limited to 'clang-plugin')
-rw-r--r--clang-plugin/printf_check.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc
index 4bb0f33a8..76b306b51 100644
--- a/clang-plugin/printf_check.cc
+++ b/clang-plugin/printf_check.cc
@@ -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;