commit e6dc239: [Minor] Oops, fix check
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Jul 6 20:28:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-07-06 21:22:33 +0100
URL: https://github.com/rspamd/rspamd/commit/e6dc2391ad809c7b7ff0d154c35272602314bf8b (HEAD -> master)
[Minor] Oops, fix check
---
src/libserver/html/html.cxx | 4 +---
1 file changed, 1 insertion(+), 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) {
More information about the Commits
mailing list