diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-02 12:44:02 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-02 12:44:02 +0000 |
commit | 83b9c39e0b1844a49b852af677364619913eb91e (patch) | |
tree | 8513a479416e0a3cc17e9e4d51fda5420932e258 /src/libmime/mime_parser.c | |
parent | 279772c1aa1c2e8b531fc79165951320d688242a (diff) | |
download | rspamd-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.c | 2 |
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 " |