diff --git a/src/SSLSocket.cpp b/src/SSLSocket.cpp index 3259bb7..eea11e6 100644 --- a/src/SSLSocket.cpp +++ b/src/SSLSocket.cpp @@ -212,7 +212,7 @@ namespace fr //Apply receive timeout DWORD timeout_dword = static_cast(get_receive_timeout()); - setsockopt(socket_descriptor, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout_dword, sizeof timeout_dword); + setsockopt(get_socket_descriptor(), SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout_dword, sizeof timeout_dword); #endif } }