diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2023-11-25 10:39:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 10:39:14 +0100 |
| commit | 2bb5c4cafc437f5dfe7ecb84409a551c65c39e68 (patch) | |
| tree | 4e10a8a0b5922d0ef4bb2e29626b2e4c86e3895b | |
| parent | 3c021f9c52dd959d11fc22b37286694dc5f5b384 (diff) | |
| parent | ff0e976ff3dc1f4a783f1e9d93b18f4a1ce34f25 (diff) | |
Merge pull request #2973 from flysand7/dial_tcp_bug
[net]: Fix passing the wrong socket to `linux.connect` on linux
| -rw-r--r-- | core/net/socket_linux.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net/socket_linux.odin b/core/net/socket_linux.odin index 6d3f111d1..ba48959fb 100644 --- a/core/net/socket_linux.odin +++ b/core/net/socket_linux.odin @@ -125,7 +125,7 @@ _create_socket :: proc(family: Address_Family, protocol: Socket_Protocol) -> (An } @(private) -_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := default_tcp_options) -> (tcp_sock: TCP_Socket, err: Network_Error) { +_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := default_tcp_options) -> (TCP_Socket, Network_Error) { errno: linux.Errno if endpoint.port == 0 { return 0, .Port_Required |