Skip to content

Commit 2d280bd

Browse files
Select non-blocking sock for write instead of read
Found by: michaelortmann Patch by: michaelortmann
1 parent 18fc952 commit 2d280bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ int open_telnet_raw(int sock, sockname_t *addr)
586586
tv.tv_usec = 0;
587587
FD_ZERO(&sockset);
588588
FD_SET(sock, &sockset);
589-
select(sock + 1, &sockset, NULL, NULL, &tv);
589+
select(sock + 1, NULL, &sockset, NULL, &tv);
590590
res_len = sizeof(res);
591591
getsockopt(sock, SOL_SOCKET, SO_ERROR, &res, &res_len);
592592
if (res == EINPROGRESS) /* Operation now in progress */

0 commit comments

Comments
 (0)