diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-05-21 17:29:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-05-21 17:29:11 +0400 |
commit | 335b940b6a5b22e6ba123c313877ca85235e2678 (patch) | |
tree | 785c746d142559810b8d30e99ee4c5361e606a90 /src/html.c | |
parent | 57832154742f76265c5b8778b52785d2da968be4 (diff) | |
download | rspamd-335b940b6a5b22e6ba123c313877ca85235e2678.tar.gz rspamd-335b940b6a5b22e6ba123c313877ca85235e2678.zip |
* Fix issue with <?xml> tag
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c index eb2179369..69f5e09c2 100644 --- a/src/html.c +++ b/src/html.c @@ -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); |