diff options
Diffstat (limited to 'rfc2045/reformime.c')
| -rw-r--r-- | rfc2045/reformime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rfc2045/reformime.c b/rfc2045/reformime.c index 8fb311c..9851c65 100644 --- a/rfc2045/reformime.c +++ b/rfc2045/reformime.c @@ -183,7 +183,8 @@ char *disposition_name, *disposition_filename; rfc2045_mimeinfo(s, &content_type, &transfer_encoding, &charset); rfc2045_mimepos(s, &start, &end, &body, &nlines, &nbodylines); - if (rfc2231_udecodeType(s, "name", NULL, &content_name) < 0) + if (rfc2231_udecodeType(s, "name", NULL, &content_name) < 0 + && (content_name=strdup("")) == NULL) { perror("malloc"); exit(1); |
