aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-02 12:44:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-02-02 12:44:02 +0000
commit83b9c39e0b1844a49b852af677364619913eb91e (patch)
tree8513a479416e0a3cc17e9e4d51fda5420932e258 /src/libmime/mime_parser.c
parent279772c1aa1c2e8b531fc79165951320d688242a (diff)
downloadrspamd-83b9c39e0b1844a49b852af677364619913eb91e.tar.gz
rspamd-83b9c39e0b1844a49b852af677364619913eb91e.zip
[Minor] Smime: Check if we have a signed data before dereferencing
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index 207bd4462..e74201f27 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -726,7 +726,7 @@ rspamd_mime_parse_normal_part (struct rspamd_task *task,
ct_nid = OBJ_obj2nid (p7_signed_content->type);
- if (ct_nid == NID_pkcs7_data) {
+ if (ct_nid == NID_pkcs7_data && p7_signed_content->d.data) {
int ret;
msg_debug_mime ("found an additional part inside of "