diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-26 20:02:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-26 20:09:02 +0100 |
commit | e275eb54a06e46f76929e34e1c83bcc41d46c0fb (patch) | |
tree | ae69700f7d6c05bae0a8ce1c7a3575eb5f0ad0bc /src/libmime/mime_parser.c | |
parent | 2e02f4127e0a57bceac7315156153b3f0a1281f7 (diff) | |
download | rspamd-e275eb54a06e46f76929e34e1c83bcc41d46c0fb.tar.gz rspamd-e275eb54a06e46f76929e34e1c83bcc41d46c0fb.zip |
[Minor] Fix error propagation
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 21374e249..0b682879d 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -1382,6 +1382,10 @@ rspamd_mime_parse_message (struct rspamd_task *task, ret = rspamd_mime_parse_normal_part (task, npart, nst, err); } + if (ret != RSPAMD_MIME_PARSE_OK) { + return ret; + } + if (part && st->stack->len > 0) { /* Remove message part from the parent stack */ g_ptr_array_remove_index_fast (st->stack, st->stack->len - 1); |