Skip to content

Commit

Permalink
Fixed Socket Connect() not using the server address
Browse files Browse the repository at this point in the history
  • Loading branch information
John committed Oct 24, 2012
1 parent d917550 commit 216b76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ SAL_Socket* SAL_Socket_Connect(const int8* const address, const int8* port, uint
SAL_Socket* server;
struct addrinfo* serverAddrInfo;

server = SAL_Socket_PrepareRawSocket(NULL, port, family, type, false, &serverAddrInfo);
server = SAL_Socket_PrepareRawSocket(address, port, family, type, false, &serverAddrInfo);
if (server == NULL) {
return NULL;
}
Expand Down

0 comments on commit 216b76a

Please sign in to comment.