Skip to content

Conversation

@jeremyspiegel
Copy link

When binding with a port number of 0, TServerSocket::listen calls
getsockname to retrieve the bound port number. The previous code was
passing too small a buffer as a parameter, failing on Windows with
errno 2 and WSAGetLastError WSAEFAULT. This change fixes the issue by
using struct sockaddr_storage instead of struct sockaddr as the
parameter buffer.

When binding with a port number of 0, TServerSocket::listen calls
getsockname to retrieve the bound port number. The previous code was
passing too small a buffer as a parameter, failing on Windows with
errno 2 and WSAGetLastError WSAEFAULT. This change fixes the issue by
using struct sockaddr_storage instead of struct sockaddr as the
parameter buffer.
@asfgit asfgit closed this in 269473d Jan 2, 2016
gadLinux pushed a commit to gadLinux/thrift that referenced this pull request Mar 6, 2016
allengeorge pushed a commit to allengeorge/thrift that referenced this pull request Jan 1, 2017
Jens-G pushed a commit to Jens-G/thrift that referenced this pull request Apr 14, 2019
* Give defaultClientName a value when it is null
This prevents calling TryGetAzureRoleInstanceIdNoThrow() repeatedly in the null case.
* Upgrade xunit to 2.3.1
* Upgrade xunit to v2.4.0-beta1 to work around xunit/xunit#1601
* Move xUnit to 2.4.0-beta.1.build3958
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant