From: Vsevolod Stakhov Date: Mon, 6 Jul 2009 11:44:44 +0000 (+0400) Subject: * Handle tags correctly X-Git-Tag: 0.2.7~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6cdd191c29fa9e11d0d70f7366536f2b8febdeb;p=thirdparty%2Frspamd.git * Handle tags correctly --- diff --git a/src/html.c b/src/html.c index 8585f40621..7c2cf4409c 100644 --- a/src/html.c +++ b/src/html.c @@ -371,7 +371,7 @@ add_html_node (struct worker_task *task, memory_pool_t *pool, struct mime_text_p return -1; } data = new->data; - if ((data->tag->id == Tag_A || data->tag->id == Tag_IMG) && ((data->flags & FL_CLOSING) == 0)) { + if (data->tag && (data->tag->id == Tag_A || data->tag->id == Tag_IMG) && ((data->flags & FL_CLOSING) == 0)) { parse_tag_url (task, part, data->tag->id, tag_text); } if (data->flags & FL_CLOSING) {