MulticastOption.Group no longer accepts null. (#32518)
authorEric Erhardt <eric.erhardt@microsoft.com>
Sat, 22 Feb 2020 00:55:24 +0000 (18:55 -0600)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2020 00:55:24 +0000 (18:55 -0600)
commitfc37561e320b46d277cd404dda7a60c0063e0f97
tree8e3b3296662a5971e64964f2e32a72ae7f1b04aa
parent78de4bee68a727d8adf45869b484d68c2c287682
MulticastOption.Group no longer accepts null. (#32518)

* MulticastOption.Group no longer accepts null.

MulticastOption.Group is not supposed to accept null. If someone sets it to null, we will NRE inside of the Sockets implementation.

I also fixed two small double-cast problems while I was in here.

Fix #32490
src/libraries/System.Net.Sockets/src/System/Net/Sockets/IPPacketInformation.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/MulticastOption.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/UdpReceiveResult.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/MulticastOptionTest.cs