X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f951fd57a2d0708500f2d53ad785795ceba463f5..935ff400bc242e824ad2e1d2b5571fb9e611f923:/src/src/spool_mbox.c 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; };