]> source.dussan.org Git - rspamd.git/commitdiff
Fix error with tags like <? xml ?>
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 25 Jan 2011 18:47:12 +0000 (21:47 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 25 Jan 2011 18:47:12 +0000 (21:47 +0300)
src/html.c

index 64ebe362e94d1adfd06339fb591bba04a3d7835f..2ac2fe323e9c63610ab1b2cdc44400b2842b2f74 100644 (file)
@@ -864,7 +864,9 @@ add_html_node (struct worker_task *task, memory_pool_t * pool, struct mime_text_
                                *cur_level = new;
                        }
                        /* Skip some tags */
-                       if (data->tag->id == Tag_STYLE || data->tag->id == Tag_SCRIPT || data->tag->id == Tag_OBJECT) {
+                       if (data->tag && (data->tag->id == Tag_STYLE ||
+                                                         data->tag->id == Tag_SCRIPT ||
+                                                         data->tag->id == Tag_OBJECT)) {
                                return FALSE;
                        }
                }