Check fd against >=0 instead of >0 in error path. The dup could
authordtucker <dtucker@openbsd.org>
Fri, 31 Mar 2023 00:44:29 +0000 (00:44 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 31 Mar 2023 00:44:29 +0000 (00:44 +0000)
commiteb693e2bbbde8b169e3aa960f1955b8606ca83ab
treeb0dc9b944dc8841d8908a95ad4c2922502494d37
parent8512481b7ba2689edf8c8aebbdb2713e9b6a150c
Check fd against >=0 instead of >0 in error path.  The dup could
in theory return fd 0 although currently it doesn't in practice.
From Dmitry Belyavskiy vi github PR#238.
usr.bin/ssh/monitor_wrap.c