From 340a02a4336a02115eb908a48618814bf35fd924 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Mon, 23 Mar 2009 08:25:16 +0000 Subject: 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 --- usr.sbin/smtpd/mda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 @@ -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) -- cgit v1.2.3