提交 6941b7b9 编写于 作者: D Dr. Stephen Henson

PR: 2711

Submitted by: Tomas Mraz <tmraz@redhat.com>

Tolerate bad MIME headers in parser.
上级 ef570cc8
......@@ -858,6 +858,10 @@ static int mime_hdr_addparam(MIME_HEADER *mhdr, char *name, char *value)
static int mime_hdr_cmp(const MIME_HEADER * const *a,
const MIME_HEADER * const *b)
{
if ((*a)->name == NULL || (*b)->name == NULL)
return (*a)->name - (*b)->name < 0 ? -1 :
(*a)->name - (*b)->name > 0 ? 1 : 0;
return(strcmp((*a)->name, (*b)->name));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册