]> Pileus Git - ~andy/fetchmail/commitdiff
Add Storner's sanity check.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 10 Jan 1999 16:08:42 +0000 (16:08 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 10 Jan 1999 16:08:42 +0000 (16:08 -0000)
svn path=/trunk/; revision=2347

unmime.c

index 753c9aa19210a5db06ba7ef7ee567cee5bc97191..bbdc75919ab139cf702069fbe100afa8382d49eb 100644 (file)
--- 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++) ;