6687803 sshd passes incorrect descriptor to audit_sshd_settid() when spawned from inetd
authorpaulson
Thu, 24 Apr 2008 01:24:21 -0700
changeset 6481 11f45b511199
parent 6480 d50f51fd3502
child 6482 45eb7438d352
6687803 sshd passes incorrect descriptor to audit_sshd_settid() when spawned from inetd
usr/src/cmd/ssh/sshd/sshd.c
--- a/usr/src/cmd/ssh/sshd/sshd.c	Wed Apr 23 22:53:05 2008 -0700
+++ b/usr/src/cmd/ssh/sshd/sshd.c	Thu Apr 24 01:24:21 2008 -0700
@@ -41,7 +41,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -1148,6 +1148,7 @@
 		sock_in = dup(0);
 		sock_out = dup(1);
 		startup_pipe = -1;
+		newsock = sock_in;
 		/*
 		 * We intentionally do not close the descriptors 0, 1, and 2
 		 * as our code for setting the descriptors won\'t work if