summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/ipsocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c
index 88225f76e5..c9fcfb64fb 100644
--- a/ext/socket/ipsocket.c
+++ b/ext/socket/ipsocket.c
@@ -633,7 +633,7 @@ init_fast_fallback_inetsock_internal(VALUE v)
unsigned int t;
if (!NIL_P(open_timeout)) {
t = rsock_value_timeout_to_msec(open_timeout);
- } else if (!NIL_P(open_timeout)) {
+ } else if (!NIL_P(resolv_timeout)) {
t = rsock_value_timeout_to_msec(resolv_timeout);
} else {
t = 0;
@@ -1340,7 +1340,7 @@ rsock_init_inetsock(
unsigned int t;
if (!NIL_P(open_timeout)) {
t = rsock_value_timeout_to_msec(open_timeout);
- } else if (!NIL_P(open_timeout)) {
+ } else if (!NIL_P(resolv_timeout)) {
t = rsock_value_timeout_to_msec(resolv_timeout);
} else {
t = 0;