aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-05-25 14:44:00 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-05-25 14:44:00 +0100
commit7a0fce60aee0860ef48b6d8e98d413cf540dcf46 (patch)
treeedc7220b5ff6c0390b0f17fb3b699b0c1b7d1c37
parent95070f959420a871dff813669f809c345993e5e9 (diff)
downloadrspamd-7a0fce60aee0860ef48b6d8e98d413cf540dcf46.tar.gz
rspamd-7a0fce60aee0860ef48b6d8e98d413cf540dcf46.zip
[Minor] Fix for old hyperscan
-rw-r--r--src/libserver/hyperscan_tools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx
index 7d3a71a5c..8159cbd26 100644
--- a/src/libserver/hyperscan_tools.cxx
+++ b/src/libserver/hyperscan_tools.cxx
@@ -521,7 +521,7 @@ auto load_cached_hs_file(const char *fname, std::int64_t offset = 0) -> tl::expe
ret = hs_shared_from_serialized(hs_cache, std::forward<T>(cached_serialized), offset);
}
#else // defined(HS_MAJOR) && defined(HS_MINOR) && HS_MAJOR >= 5 && HS_MINOR >= 4
- ret = hs_shared_from_serialized(hs_cache, std::forward<T>(cached_serialized), offset);
+ auto ret = hs_shared_from_serialized(hs_cache, std::forward<T>(cached_serialized), offset);
#endif // defined(HS_MAJOR) && defined(HS_MINOR) && HS_MAJOR >= 5 && HS_MINOR >= 4
// Add serialized file to cache merely if we have successfully loaded the actual db
if (ret.has_value()) {