Return immediately from get_sock_port if sock <0 so we don't call
authordtucker <dtucker@openbsd.org>
Fri, 31 Mar 2023 04:42:29 +0000 (04:42 +0000)
committerdtucker <dtucker@openbsd.org>
Fri, 31 Mar 2023 04:42:29 +0000 (04:42 +0000)
commitc1053578965866fc88cbd7618d0a63df19bdd0a1
tree764e13fede09c896ceead847b40ed949f84ee71c
parent6891490920be2e6e77557e4c0c62052725895820
Return immediately from get_sock_port if sock <0 so we don't call
getsockname on a negative FD.  From Coverity CID 291840, ok djm@
usr.bin/ssh/canohost.c