From 2ddfea8f86d1ce18e4b0db958a44abdbb06b4db2 Mon Sep 17 00:00:00 2001 From: "ducarroz%netscape.com" Date: Fri, 17 May 2002 19:47:50 +0000 Subject: [PATCH] Fix for bug 142672. We should not display an alternative part without a content-type. R=varada, SR=bienvenu --- mailnews/mime/src/mimemalt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mailnews/mime/src/mimemalt.cpp b/mailnews/mime/src/mimemalt.cpp index bc777f78bb0e..11032d2ffd9f 100644 --- a/mailnews/mime/src/mimemalt.cpp +++ b/mailnews/mime/src/mimemalt.cpp @@ -222,6 +222,8 @@ MimeMultipartAlternative_display_part_p(MimeObject *self, MimeHeaders *sub_hdrs) { char *ct = MimeHeaders_get (sub_hdrs, HEADER_CONTENT_TYPE, PR_TRUE, PR_FALSE); + if (!ct) + return PR_FALSE; /* RFC 1521 says: Receiving user agents should pick and display the last format