diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-11 12:01:52 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-11 12:01:52 +0000 |
commit | 1912eac2d678b2993b4ef1fa41e36ca7a38e8239 (patch) | |
tree | 3505540a9ea4f7805575e4b7286f1ddd55e0eb33 /src/libmime/archives.c | |
parent | 8c2a9cf39f18755091d8229e53a4c7f897496759 (diff) | |
download | rspamd-1912eac2d678b2993b4ef1fa41e36ca7a38e8239.tar.gz rspamd-1912eac2d678b2993b4ef1fa41e36ca7a38e8239.zip |
[Feature] Core: Add libmagic detection for all parts
Diffstat (limited to 'src/libmime/archives.c')
-rw-r--r-- | src/libmime/archives.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/archives.c b/src/libmime/archives.c index 9cfce6968..1f9a5c634 100644 --- a/src/libmime/archives.c +++ b/src/libmime/archives.c @@ -1509,8 +1509,8 @@ rspamd_archive_cheat_detect (struct rspamd_mime_part *part, const gchar *str, } if (magic_start != NULL) { - if (part->parsed_data.len > magic_len && memcmp (part->parsed_data.begin, - magic_start, magic_len) == 0) { + if (part->parsed_data.len > magic_len && + memcmp (part->parsed_data.begin, magic_start, magic_len) == 0) { return TRUE; } } |