提交 030648ce 编写于 作者: M Matt Caswell

Ensure the mime_hdr_free function can handle NULLs

Sometimes it is called with a NULL pointer
Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 2b201c5c
......@@ -918,6 +918,8 @@ static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, const char *name)
static void mime_hdr_free(MIME_HEADER *hdr)
{
if (hdr == NULL)
return;
OPENSSL_free(hdr->name);
OPENSSL_free(hdr->value);
if (hdr->params)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册