From: Vsevolod Stakhov Date: Fri, 27 Oct 2023 07:20:48 +0000 (+0100) Subject: [Minor] Really fix the issue X-Git-Tag: 3.7.3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae8621d2fbfe77e60320324fe35c9542ff31c459;p=thirdparty%2Frspamd.git [Minor] Really fix the issue --- diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx index f7bd78a9b6..4bcc68e4a7 100644 --- a/src/libserver/hyperscan_tools.cxx +++ b/src/libserver/hyperscan_tools.cxx @@ -147,7 +147,7 @@ public: fpath = std::filesystem::canonical(fpath, ec); - if (!ec && ec.value() != 0) { + if (ec && ec.value() != 0) { msg_err_hyperscan("invalid path: \"%s\", error message: %s", fname, ec.message().c_str()); return; } @@ -177,7 +177,7 @@ public: fpath = std::filesystem::canonical(fpath, ec); - if (!ec && ec.value() != 0) { + if (ec && ec.value() != 0) { msg_err_hyperscan("invalid path to remove: \"%s\", error message: %s", fname, ec.message().c_str()); return;