summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2009-03-23 08:25:15 +0000
committertobias <tobias@openbsd.org>2009-03-23 08:25:15 +0000
commit588af98b656f4ee603bb836d872e4a4d2d602484 (patch)
tree6dae3744f7e476d08b329b7251dafb6254e39892
parentLP_NOTICE should be LP_ERR when showing directory messages. (diff)
downloadwireguard-openbsd-588af98b656f4ee603bb836d872e4a4d2d602484.tar.xz
wireguard-openbsd-588af98b656f4ee603bb836d872e4a4d2d602484.zip
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
-rw-r--r--usr.sbin/smtpd/mda.c4
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)