CSHARP-980:fixed issue with Kerberos corrupting managed memory.