diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2009-03-23 08:25:16 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2009-03-23 08:25:16 +0000 |
commit | 340a02a4336a02115eb908a48618814bf35fd924 (patch) | |
tree | 4b378e912c5b226502a577aaa03db9f734ed7bed /usr.sbin/smtpd/mda.c | |
parent | 4853f6efd95245776a576b737e78d54730a83374 (diff) |
Fixed a leaking of a fd each time a file is delivered to a mbox, which
was introduced in revision 1.7.
ok and log message by gilles
Diffstat (limited to 'usr.sbin/smtpd/mda.c')
-rw-r--r-- | usr.sbin/smtpd/mda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mda.c b/usr.sbin/smtpd/mda.c index a4a5c5d7dbe..31609d4a852 100644 --- a/usr.sbin/smtpd/mda.c +++ b/usr.sbin/smtpd/mda.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mda.c,v 1.11 2009/03/15 19:15:25 gilles Exp $ */ +/* $OpenBSD: mda.c,v 1.12 2009/03/23 08:25:15 tobias Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -165,7 +165,7 @@ mda_dispatch_parent(int sig, short event, void *p) IMSG_PARENT_MAILBOX_RENAME, 0, 0, -1, batchp, sizeof(struct batch)); } - else + if (s->mboxfd != -1) close(s->mboxfd); if (s->messagefd != -1) |