]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Sigh, fix crash
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 12:25:37 +0000 (13:25 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 12:25:37 +0000 (13:25 +0100)
src/libserver/html/html.cxx

index 324695bdff39cff6a964d01019a0a5dd58bd4969..2e519e81a814f930314eb9c59a788bd1c99037b7 100644 (file)
@@ -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 {