aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/archives.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime/archives.c')
-rw-r--r--src/libmime/archives.c2
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, '.',