Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <mabaul@microsoft.com>2017-08-31 19:49:08 +0300
committerChris Hamons <chris.hamons@xamarin.com>2017-09-12 17:58:34 +0300
commit1ef65e0442cb17052452d378645346eef60720af (patch)
tree884380d4ed5d3d3b4577f2577a757060ae0689cb
parent01f2e009df2ded7abceb93481e668c47ee522826 (diff)
[System]: Fix major AppleTls memory leak. Bug #56814. (#5370) (#5377)
(cherry picked from commit c74f44126efe14f933ddc77dc0778f5142be0ec2)
-rw-r--r--mcs/class/System/Mono.AppleTls/AppleTlsContext.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System/Mono.AppleTls/AppleTlsContext.cs b/mcs/class/System/Mono.AppleTls/AppleTlsContext.cs
index 6a57babab4e..076e270d2de 100644
--- a/mcs/class/System/Mono.AppleTls/AppleTlsContext.cs
+++ b/mcs/class/System/Mono.AppleTls/AppleTlsContext.cs
@@ -665,7 +665,7 @@ namespace Mono.AppleTls
if (value == IntPtr.Zero)
throw new TlsException (AlertDescription.CertificateUnknown);
}
- return (value == IntPtr.Zero) ? null : new SecTrust (value);
+ return (value == IntPtr.Zero) ? null : new SecTrust (value, true);
}
#endregion