diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-26 20:08:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-26 20:09:02 +0100 |
commit | 0c3144ed76b67795a2ddc559a985b736b8155d69 (patch) | |
tree | 125b2ffdcf37c174ffc855b75d1c47f72c7853e5 /src/libmime/archives.c | |
parent | 4ca2e3fb45e9e7f3f0875d77cf25950cf21ba14c (diff) | |
download | rspamd-0c3144ed76b67795a2ddc559a985b736b8155d69.tar.gz rspamd-0c3144ed76b67795a2ddc559a985b736b8155d69.zip |
[Fix] Fix crash on parts with no cd
Diffstat (limited to 'src/libmime/archives.c')
-rw-r--r-- | src/libmime/archives.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/archives.c b/src/libmime/archives.c index d938dbcf3..8c7e4ea90 100644 --- a/src/libmime/archives.c +++ b/src/libmime/archives.c @@ -1766,7 +1766,7 @@ rspamd_archive_process_gzip (struct rspamd_task *task, } /* Fallback, we need to extract file name from archive name if possible */ - if (part->cd->filename.len > 0) { + if (part->cd && part->cd->filename.len > 0) { const gchar *dot_pos, *slash_pos; dot_pos = rspamd_memrchr (part->cd->filename.begin, '.', |