]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
* Fix issue with <?xml> tag
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 21 May 2009 13:29:11 +0000 (17:29 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 21 May 2009 13:29:11 +0000 (17:29 +0400)
src/html.c

index eb2179369d586b15e7eadb297b86dcf9dd600284..69f5e09c24ff7de0bf59da0e6a5e47203023254c 100644 (file)
@@ -230,7 +230,7 @@ check_balance (GNode *node, GNode **cur_level)
                cur = node->parent;
                while (cur && cur->data) {
                        tmp = cur->data;
-                       if (tmp->tag->id == arg->tag->id && (tmp->flags & FL_CLOSED) == 0) {
+                       if ((tmp->tag && arg->tag) && tmp->tag->id == arg->tag->id && (tmp->flags & FL_CLOSED) == 0) {
                                tmp->flags |= FL_CLOSED;
                                /* Destroy current node as we find corresponding parent node */
                                g_node_destroy (node);