Skip to content

Commit 59212ae

Browse files
Merge pull request #20 from SapientGuardian/securitysafecritical
Add SecuritySafeCritical attribute to CreateSocketStream
2 parents eab90a1 + d5a6bcc commit 59212ae

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: Source/MySql.Data/common/MyNetworkStream.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@
2626
using System.Net;
2727
using System.Net.Sockets;
2828
using System.Reflection;
29+
using System.Security;
2930
using System.Threading.Tasks;
3031

3132
namespace MySql.Data.Common
32-
{
33-
internal class MyNetworkStream : NetworkStream
33+
{
34+
internal class MyNetworkStream : NetworkStream
3435
{
3536
/// <summary>
3637
/// Wrapper around NetworkStream.
@@ -256,7 +257,7 @@ private static EndPoint CreateUnixEndPoint(string host)
256257
return ep;
257258
}
258259
#endif
259-
260+
[SecuritySafeCritical]
260261
private static MyNetworkStream CreateSocketStream(MySqlConnectionStringBuilder settings, IPAddress ip, bool unix)
261262
{
262263
EndPoint endPoint;

Diff for: Source/MySql.Data/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.9.809",
2+
"version": "6.9.810",
33
"description": "MySQL client library targeting netstandard 1.3",
44
"authors": [ "Oracle", "SapientGuardian", "ebyte23" ],
55
"buildOptions": {

0 commit comments

Comments
 (0)