aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-10-27 08:20:48 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-10-27 08:20:48 +0100
commitae8621d2fbfe77e60320324fe35c9542ff31c459 (patch)
treed8413fa2396247f7aa38f1ec3c8cb4e0eb26b2df /src
parent8d70c4a50198b18f2e16ab9ff58ca43df0d4ebd8 (diff)
downloadrspamd-ae8621d2fbfe77e60320324fe35c9542ff31c459.tar.gz
rspamd-ae8621d2fbfe77e60320324fe35c9542ff31c459.zip
[Minor] Really fix the issue
Diffstat (limited to 'src')
-rw-r--r--src/libserver/hyperscan_tools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx
index f7bd78a9b..4bcc68e4a 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;