Skip to content

Commit 151ee2c

Browse files
committed
log and clean up
1 parent e110757 commit 151ee2c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SSPI/NegotiateSspiContextProvider.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ protected override bool GenerateSspiClientContext(ReadOnlySpan<byte> incomingBlo
3131
return true;
3232
}
3333

34-
_negotiateAuth.Dispose();
35-
_negotiateAuth = null;
36-
3734
return false;
3835
}
3936
}

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SSPI/SspiContextProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ string serverSpn
2828

2929
var options = parser.Connection.ConnectionOptions;
3030

31+
SqlClientEventSource.Log.StateDumpEvent("<SspiContextProvider> Initializing provider {0} with SPN={1}", GetType().FullName, serverSpn);
32+
3133
_authParam = new SspiAuthenticationParameters(options.DataSource, serverSpn)
3234
{
3335
DatabaseName = options.InitialCatalog,

0 commit comments

Comments
 (0)