1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-22 14:19:02 +00:00

Avoid printing (null):-1 for STDIN in Nsock debug output

This commit is contained in:
dmiller
2024-12-09 20:03:48 +00:00
parent ad4e4a6edc
commit 4f712b76a3

View File

@@ -662,6 +662,7 @@ static int do_actual_read(struct npool *ms, struct nevent *nse) {
* sockets, so peerlen is still sizeof(peer) and peer is junk. Instead,
* only set this if it's not already set.
*/
&& !IOD_PROPGET(iod, IOD_STDIN)
&& (iod->lastproto == IPPROTO_UDP || iod->peerlen == 0)
#endif
) {