summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-03-17 22:25:09 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-03-17 22:25:09 +0000
commit1ae4663b487e31103aac72ff06c02a104d40e907 (patch)
treead5b86a35ffc20e5b7482a2eca7d6a71c9473e6e /usr.sbin/relayd
parenta92c0ac2fe007da11296fc93530ee0fd92641197 (diff)
close unused relay2pfe privsep sockets correctly
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/relay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 20fb367ad16..2a55985022d 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.20 2007/03/17 22:22:23 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.21 2007/03/17 22:25:08 reyk Exp $ */
/*
* Copyright (c) 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -221,7 +221,7 @@ relay(struct hoststated *x_env, int pipe_parent2pfe[2], int pipe_parent2hce[2],
for (i = 0; i < env->prefork_relay; i++) {
if (i == proc_id)
continue;
- close(pipe_pfe2relay[i][1]);
+ close(pipe_pfe2relay[i][0]);
close(pipe_pfe2relay[i][1]);
}
close(pipe_pfe2relay[proc_id][1]);