commit e275eb5: [Minor] Fix error propagation
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Oct 26 19:14:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-26 20:02:33 +0100
URL: https://github.com/rspamd/rspamd/commit/e275eb54a06e46f76929e34e1c83bcc41d46c0fb
[Minor] Fix error propagation
---
src/libmime/mime_parser.c | 4 ++++
1 file changed, 4 insertions(+)
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);
More information about the Commits
mailing list