Skip to content

Commit 4f712b7

Browse files
committed
Avoid printing (null):-1 for STDIN in Nsock debug output
1 parent ad4e4a6 commit 4f712b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nsock/src/nsock_core.c

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

0 commit comments

Comments
 (0)