From dae6cacb09cd1de3d6f059e6c8656c171961bb47 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 10 Jan 1999 16:08:42 +0000 Subject: Add Storner's sanity check. svn path=/trunk/; revision=2347 --- unmime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unmime.c b/unmime.c index 753c9aa1..bbdc7591 100644 --- a/unmime.c +++ b/unmime.c @@ -344,6 +344,9 @@ int CheckContentType(char *CntType) char *p = CntType; int i; + /* If no Content-Type header, it isn't MIME - don't touch it */ + if (CntType == NULL) return 0; + /* Skip whitespace, if any */ for (; isspace(*p); p++) ; -- cgit v1.2.3