aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-10 16:08:42 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-10 16:08:42 +0000
commitdae6cacb09cd1de3d6f059e6c8656c171961bb47 (patch)
tree084b1ee9dd3fe2dd53cef6bf75fee299d055c674
parentd9af45254db506bfc07b3be948f172ccd9e8159b (diff)
downloadfetchmail-dae6cacb09cd1de3d6f059e6c8656c171961bb47.tar.gz
fetchmail-dae6cacb09cd1de3d6f059e6c8656c171961bb47.tar.bz2
fetchmail-dae6cacb09cd1de3d6f059e6c8656c171961bb47.zip
Add Storner's sanity check.
svn path=/trunk/; revision=2347
-rw-r--r--unmime.c3
1 files changed, 3 insertions, 0 deletions
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++) ;