diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-09-22 08:41:59 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-09-22 08:41:59 +0000 |
commit | 21a04aa376e91125fa8c289c5c9502873c7166ec (patch) | |
tree | d6d821e1d3f7dc223667269838adac78a1fa1962 | |
parent | a2405d832ad5c6eea0dbf34b686926ab36d6fcb6 (diff) |
Apply patch to fix bug introduced by the last patch to spool_mbox.c
(from Nico Erfurth).
-rw-r--r-- | doc/doc-txt/ChangeLog | 5 | ||||
-rw-r--r-- | src/src/spool_mbox.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index ac92dfbc3..eebf9122d 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.395 2006/09/19 20:01:13 jetmore Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.396 2006/09/22 08:41:59 ph10 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -34,7 +34,8 @@ PH/03 On Solaris, an unexpectedly close socket (dropped connection) can PH/04 Applied Nico Erfurth's refactoring patch to tidy up mime.c (quoted-printable decoding). -PH/05 Applied Nico Efrurth's refactoring patch to tidy up spool_mbox.c. +PH/05 Applied Nico Efrurth's refactoring patch to tidy up spool_mbox.c, and + later the small subsequent patch to fix an introduced bug. PH/06 Installed the latest Cygwin Makefile from the Cygwin maintainer. diff --git a/src/src/spool_mbox.c b/src/src/spool_mbox.c index 69b0995ad..e723cd8c9 100644 --- a/src/src/spool_mbox.c +++ b/src/src/spool_mbox.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/spool_mbox.c,v 1.12 2006/09/12 10:35:56 ph10 Exp $ */ +/* $Cambridge: exim/src/src/spool_mbox.c,v 1.13 2006/09/22 08:41:59 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -140,6 +140,9 @@ FILE *spool_mbox(unsigned long *mbox_file_size) { }; } while (j > 0); + (void)fclose(mbox_file); + mbox_file = NULL; + Ustrcpy(spooled_message_id, message_id); spool_mbox_ok = 1; }; |