X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fmime.c;h=5ed15b0817bfd1c87918161420473a22e1815f5d;hb=b6040544759110aa97f93e9ba0dd8232cd5e5188;hp=17643eda366f5ef1ea621aa8761932082f09e04c;hpb=f1d38a56d8aa122a13f84db36bd1db1ceb489454;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/mime.c b/src/src/mime.c index 17643eda3..5ed15b081 100644 --- a/src/src/mime.c +++ b/src/src/mime.c @@ -233,11 +233,9 @@ long f_pos = 0; ssize_t size_counter = 0; ssize_t (*decode_function)(FILE*, FILE*, uschar*); -if (mime_stream == NULL) +if (!mime_stream || (f_pos = ftell(mime_stream)) < 0) return FAIL; -f_pos = ftell(mime_stream); - /* build default decode path (will exist since MBOX must be spooled up) */ (void)string_format(decode_path,1024,"%s/scan/%s",spool_directory,message_id); @@ -247,7 +245,7 @@ if ((option = string_nextinlist(&list, &sep, sizeof(option_buffer))) != NULL) { /* parse 1st option */ - if ( (Ustrcmp(option,"false") == 0) || (Ustrcmp(option,"0") == 0) ) + if ((Ustrcmp(option,"false") == 0) || (Ustrcmp(option,"0") == 0)) /* explicitly no decoding */ return FAIL;