]> andersk Git - openssh.git/blobdiff - sshd.c
- dtucker@cvs.openbsd.org 2004/08/11 11:50:09
[openssh.git] / sshd.c
diff --git a/sshd.c b/sshd.c
index cc051432f52c6c4153747aaaae500456ab167c43..e3acbcc814c964e71fcc9c4436dc290b42964977 100644 (file)
--- a/sshd.c
+++ b/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 <openssl/dh.h>
 #include <openssl/bn.h>
@@ -1577,7 +1577,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);
 
This page took 0.031473 seconds and 4 git commands to generate.