summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNigel Metheringham <nigel@exim.org>2009-11-07 17:17:15 +0000
committerNigel Metheringham <nigel@exim.org>2009-11-07 17:17:15 +0000
commit61da15931508341839664aebabe7167dec351c16 (patch)
tree64073feae3d6a03bdf4988758cd2fd656158a7d0
parentbaee9eee9aebe1af195d4f11a77277851c9fe098 (diff)
Fix close buglet in mime handling. Fixes: #39
-rw-r--r--src/src/mime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/mime.c b/src/src/mime.c
index ca560d447..cc8a337ae 100644
--- a/src/src/mime.c
+++ b/src/src/mime.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/mime.c,v 1.16 2009/11/06 13:29:47 nm4 Exp $ */
+/* $Cambridge: exim/src/src/mime.c,v 1.17 2009/11/07 17:17:15 nm4 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -341,7 +341,7 @@ int mime_decode(uschar **listptr) {
clearerr(mime_stream);
fseek(mime_stream, f_pos, SEEK_SET);
- if (size_counter < 0 || fclose(decode_file) != 0)
+ if (fclose(decode_file) != 0 || size_counter < 0)
return DEFER;
/* round up to the next KiB */