mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Avoid printing (null):-1 for STDIN in Nsock debug output
This commit is contained in:
parent
ad4e4a6edc
commit
4f712b76a3
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue