diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-01-10 16:08:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-01-10 16:08:42 +0000 |
commit | dae6cacb09cd1de3d6f059e6c8656c171961bb47 (patch) | |
tree | 084b1ee9dd3fe2dd53cef6bf75fee299d055c674 | |
parent | d9af45254db506bfc07b3be948f172ccd9e8159b (diff) | |
download | fetchmail-dae6cacb09cd1de3d6f059e6c8656c171961bb47.tar.gz fetchmail-dae6cacb09cd1de3d6f059e6c8656c171961bb47.tar.bz2 fetchmail-dae6cacb09cd1de3d6f059e6c8656c171961bb47.zip |
Add Storner's sanity check.
svn path=/trunk/; revision=2347
-rw-r--r-- | unmime.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++) ; |