Commit 57686080 57686080827ba9d6705169e8708a7599ce81071f by Sergey Poznyakoff

(_message_is_external_body): Check subtype before dereferencing it.

1 parent ffa23160
Showing 1 changed file with 1 additions and 1 deletions
......@@ -890,7 +890,7 @@ _message_is_external_body (message_t msg, char ***env)
return 0;
_get_content_type (hdr, &typestr, &argstr);
split_content (typestr, &type, &subtype);
rc = strcmp (subtype, "external-body") == 0;
rc = subtype && strcmp (subtype, "external-body") == 0;
if (rc && env)
{
int argc;
......