The file descriptors for socket, stdin, stdout and stderr aren't
authortb <tb@openbsd.org>
Mon, 5 Feb 2018 05:36:49 +0000 (05:36 +0000)
committertb <tb@openbsd.org>
Mon, 5 Feb 2018 05:36:49 +0000 (05:36 +0000)
commitb96bd0d40efe26426294a135b7e9b66531f4f67a
tree465bb16fea2fd33f4be99fdee617ab878bc70f2b
parent068cbcdf5f746af8446673f6efc5661150b346ce
The file descriptors for socket, stdin, stdout and stderr aren't
necessarily distinct, so check if they are the same to avoid closing
the same fd several times.

ok djm
usr.bin/ssh/channels.c