diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-22 14:17:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-11-22 14:17:10 +0000 |
commit | 0e1095a4845012a4b90eb2627d1627fefbe633fb (patch) | |
tree | 674e959c2f6a352125a8b25741b544556c6b633e /src | |
parent | ce36e23c2e07c55137ac3fb86e3f63981ddb8460 (diff) | |
download | rspamd-0e1095a4845012a4b90eb2627d1627fefbe633fb.tar.gz rspamd-0e1095a4845012a4b90eb2627d1627fefbe633fb.zip |
[Minor] Check pointer before usage
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_mimepart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c index c672591bf..a6fc2bfa5 100644 --- a/src/lua/lua_mimepart.c +++ b/src/lua/lua_mimepart.c @@ -1377,7 +1377,7 @@ lua_mimepart_is_attachment (lua_State * L) lua_pushboolean (L, true); } else { - if (part->cd->filename.len > 0) { + if (part->cd && part->cd->filename.len > 0) { /* We still have filename and it is not an image */ lua_pushboolean (L, true); } |