aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-24 16:24:50 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-24 16:24:50 +0100
commit8a9452eb0ddfe9cabcfd79dbcb12dd03158c7116 (patch)
tree9cf310702adbe1ca4c82801037c9e4630fedee5c /src/libmime
parente42de231f7e9a6bfed6cbce1eb9b6c0250b0125c (diff)
downloadrspamd-8a9452eb0ddfe9cabcfd79dbcb12dd03158c7116.tar.gz
rspamd-8a9452eb0ddfe9cabcfd79dbcb12dd03158c7116.zip
[Minor] Fix `www.` prefix matcher
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/scan_result.c1
-rw-r--r--src/libmime/scan_result.h18
2 files changed, 18 insertions, 1 deletions
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c
index 080fc0d51..e84d92494 100644
--- a/src/libmime/scan_result.c
+++ b/src/libmime/scan_result.c
@@ -52,6 +52,7 @@ rspamd_scan_result_dtor(gpointer d)
kh_destroy(rspamd_options_hash, sres->options);
}
});
+
kh_destroy(rspamd_symbols_hash, r->symbols);
kh_destroy(rspamd_symbols_group_hash, r->sym_groups);
}
diff --git a/src/libmime/scan_result.h b/src/libmime/scan_result.h
index da3fb1608..46c2de8fa 100644
--- a/src/libmime/scan_result.h
+++ b/src/libmime/scan_result.h
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2023 Vsevolod Stakhov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/**
* @file scan_result.h
* Scan result holder
@@ -43,7 +59,7 @@ struct rspamd_symbol_result {
gssize opts_len; /**< total size of all options (negative if truncated option is added) */
guint nshots;
int flags;
- struct rspamd_symbol_result *next;
+ struct rspamd_symbol_result *next; /**< for shadow results */
};