From: Vsevolod Stakhov Date: Wed, 23 Jun 2021 12:25:37 +0000 (+0100) Subject: [Minor] Sigh, fix crash X-Git-Tag: 3.0~249 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df0fc37fd60c71e190a74be8222e2a007e7824cb;p=rspamd.git [Minor] Sigh, fix crash --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 324695bdf..2e519e81a 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -1625,7 +1625,7 @@ html_process_input(rspamd_mempool_t *pool, } } - if (cur_tag->id == Tag_STYLE && !(cur_tag->flags & FL_CLOSING)) { + if (cur_tag && (cur_tag->id == Tag_STYLE && !(cur_tag->flags & FL_CLOSING))) { state = content_style; } else {