diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index 20b40318cc..224e9bcc7c 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -162,7 +162,7 @@ ErrorOr Socket::getsockopt(OpenFileDescription&, int level, int option, Us if (size < sizeof(timeval)) return EINVAL; { - timeval tv = m_send_timeout.to_timeval(); + timeval tv = m_receive_timeout.to_timeval(); TRY(copy_to_user(static_ptr_cast(value), &tv)); } size = sizeof(timeval);