diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-06 21:22:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-07-06 21:22:33 +0100 |
commit | e6dc2391ad809c7b7ff0d154c35272602314bf8b (patch) | |
tree | df3aa390346189d8bd6abaced206407a3f2b0adc | |
parent | 3fd746659d5d7b3dd6eaaa63192245965ea9d78e (diff) | |
download | rspamd-e6dc2391ad809c7b7ff0d154c35272602314bf8b.tar.gz rspamd-e6dc2391ad809c7b7ff0d154c35272602314bf8b.zip |
[Minor] Oops, fix check
-rw-r--r-- | src/libserver/html/html.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index eea957e16..480a979e3 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -193,9 +193,7 @@ html_check_balance(struct html_content *hc, } hc->all_tags.emplace_back(std::move(vtag)); - msg_err("hu6"); tag->parent = vtag.get(); - g_assert(tag->parent != tag); /* Recursively call with a virtual <html> tag inserted */ return html_check_balance(hc, tag, tag_start_offset, tag_end_offset); @@ -1499,7 +1497,7 @@ html_process_input(rspamd_mempool_t *pool, cur_closing_tag.parent = nullptr; } } - else if (cur_tag->flags & FL_CLOSED) { + else if (cur_tag && cur_tag->flags & FL_CLOSED) { /* Cur tag is already closed, we should find something else */ auto *tmp = cur_tag; while (tmp) { |