From 3ba44c33f0c821db2af7ee416fcaae5b205ec1ee Mon Sep 17 00:00:00 2001 From: v-arellegue Date: Tue, 26 Mar 2024 09:09:31 -0700 Subject: [PATCH] Suppress CodeQL warning --- .../src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs index 59776956a1..14d83ef52e 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParserStateObjectNative.cs @@ -432,7 +432,7 @@ internal override uint WaitForSSLHandShakeToComplete(out int protocolVersion) } else if (nativeProtocol.HasFlag(NativeProtocols.SP_PROT_SSL2_CLIENT) || nativeProtocol.HasFlag(NativeProtocols.SP_PROT_SSL2_SERVER)) { - protocolVersion = (int)SslProtocols.Ssl2; + protocolVersion = (int)SslProtocols.Ssl2; // CodeQL [SM00395] False Positive: Suppressing CodeQL warning as this is a legacy code #pragma warning restore CS0618 // Type or member is obsolete : SSL is depricated } else //if (nativeProtocol.HasFlag(NativeProtocols.SP_PROT_NONE))