From: Nigel Metheringham Date: Sat, 7 Nov 2009 17:17:15 +0000 (+0000) Subject: Fix close buglet in mime handling. Fixes: #39 X-Git-Tag: exim-4_70_RC3 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=61da15931508341839664aebabe7167dec351c16;p=exim.git Fix close buglet in mime handling. Fixes: #39 --- 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 */