From 45ab9110bca28bbce60ee7b7dbef43d2b31996db Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Wed, 11 Aug 2004 11:50:10 +0000 Subject: Don't try to close startup_pipe if it's not open; ok djm@ --- usr.bin/ssh/sshd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 0ed454b320e..191797c81a6 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -42,7 +42,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.300 2004/07/28 08:56:22 markus Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.301 2004/08/11 11:50:09 dtucker Exp $"); #include #include @@ -1508,7 +1508,8 @@ main(int ac, char **av) dup2(config_s[1], REEXEC_CONFIG_PASS_FD); close(config_s[1]); - close(startup_pipe); + if (startup_pipe != -1) + close(startup_pipe); execv(rexec_argv[0], rexec_argv); -- cgit v1.2.3