nc: skip connection info on failed or skipped udptest()
authortb <tb@openbsd.org>
Sun, 18 Dec 2022 12:53:18 +0000 (12:53 +0000)
committertb <tb@openbsd.org>
Sun, 18 Dec 2022 12:53:18 +0000 (12:53 +0000)
commit7be8fdb64b91c08924aada5a4a1a94b957e1b0d2
tree2d011c39321b221c3e942c5cba2485ac00d0c358
parent42efad6ca3ee4fa561e93c2065fa3a45fbafde35
nc: skip connection info on failed or skipped udptest()

In udp mode, nc would always print that the connected succeeded
independently of whether that was actually the case. Don't do that.

idea/ok mpf
usr.bin/nc/netcat.c