summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/proxsmtpd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proxsmtpd.c b/src/proxsmtpd.c
index 8f50d96..963894d 100644
--- a/src/proxsmtpd.c
+++ b/src/proxsmtpd.c
@@ -425,6 +425,9 @@ static pid_t fork_filter(spctx_t* sp, int* infd, int* outfd, int* errfd)
kill_myself();
}
+ for (r = 3; r < FD_SETSIZE; ++r)
+ close(r);
+
/* All the necessary environment vars */
sp_setup_forked(sp, 1);