Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AllowNatTraversal is properly set for stopped socket #32603

Merged

Conversation

alnikola
Copy link
Contributor

If AllowNatTraversal is called on a stopped TcpListener when _serverSocket is null, allow value gets stored in a field. Subsequently, if a new socket is created on Start call, the saved value is read and the corresponding argument is passed toSetIPProtectionLevel call.
Fixes #32551

@alnikola
Copy link
Contributor Author

/azp run runtime-libraries outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

alnikola and others added 5 commits February 21, 2020 17:16
…tener.cs

Co-Authored-By: Stephen Toub <stoub@microsoft.com>
…enerTest.cs

Co-Authored-By: Stephen Toub <stoub@microsoft.com>
…enerTest.cs

Co-Authored-By: Stephen Toub <stoub@microsoft.com>
…enerTest.cs

Co-Authored-By: Stephen Toub <stoub@microsoft.com>
@alnikola
Copy link
Contributor Author

/azp run runtime-libraries outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@alnikola
Copy link
Contributor Author

/azp run runtime-libraries outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@alnikola alnikola merged commit 7e398ff into dotnet:master Feb 21, 2020
@alnikola alnikola deleted the alnikola/32551-nre-in-allow-nat-traversal branch February 21, 2020 18:44
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A stopped TcpListener will NRE during AllowNatTraversal
4 participants