Skip to content

Commit 4d8c793

Browse files
committed
Fix initialization of struct wait_fast_fallback_arg::cancelled
1 parent a355f7d commit 4d8c793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/socket/ipsocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ init_fast_fallback_inetsock_internal(VALUE v)
616616
arg->getaddrinfo_shared->connection_attempt_fds = arg->connection_attempt_fds;
617617
arg->getaddrinfo_shared->connection_attempt_fds_size = arg->connection_attempt_fds_size;
618618
arg->getaddrinfo_shared->cancelled = false;
619-
wait_arg.cancelled = false;
619+
wait_arg.cancelled = &arg->getaddrinfo_shared->cancelled;
620620

621621
struct timeval resolution_delay_storage;
622622
struct timeval *resolution_delay_expires_at = NULL;

0 commit comments

Comments
 (0)