summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/smtpd/mfa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c
index 96af18ef5ed..22e5a19827c 100644
--- a/usr.sbin/smtpd/mfa.c
+++ b/usr.sbin/smtpd/mfa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfa.c,v 1.61 2011/08/31 18:56:30 gilles Exp $ */
+/* $OpenBSD: mfa.c,v 1.62 2011/09/27 18:53:24 chl Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -354,7 +354,8 @@ mfa_fork_filter(struct filter *filter)
/* filter */
dup2(sockpair[0], 0);
- closefrom(3);
+ if (closefrom(STDERR_FILENO + 1) < 0)
+ exit(1);
execl(filter->path, filter->name, NULL);
exit(1);