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-04-04 22:47:22 +0300
committerGitHub <noreply@github.com>2017-04-04 22:47:22 +0300
commitdda961cf9a7454e97bbeb7c35a802f10d77fc32c (patch)
treeba1e8e90142b766a31bac1bc70cf74f78eb60515
parent55a698e07d25094067927f51b3eb193878fb21bb (diff)
[appletls]: Make CFObject.dlsym() private and fix CFBoolean. (#4640) (#4641)mono-5.0.0.42
This fixes a native crash when attempting to use appletls. (cherry picked from commit 989aefce37f17ea093c7d1c62b8185771a9b1f9c)
-rw-r--r--mcs/class/System/System.Net/MacProxy.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System/System.Net/MacProxy.cs b/mcs/class/System/System.Net/MacProxy.cs
index 69b4133226b..bd2cdc10b98 100644
--- a/mcs/class/System/System.Net/MacProxy.cs
+++ b/mcs/class/System/System.Net/MacProxy.cs
@@ -47,7 +47,7 @@ namespace Mono.Net
public static extern IntPtr dlopen (string path, int mode);
[DllImport (SystemLibrary)]
- public static extern IntPtr dlsym (IntPtr handle, string symbol);
+ static extern IntPtr dlsym (IntPtr handle, string symbol);
[DllImport (SystemLibrary)]
public static extern void dlclose (IntPtr handle);
@@ -1249,8 +1249,8 @@ namespace Mono.Net
if (handle == IntPtr.Zero)
return;
try {
- True = new CFBoolean (CFObject.dlsym (handle, "kCFBooleanTrue"), false);
- False = new CFBoolean (CFObject.dlsym (handle, "kCFBooleanFalse"), false);
+ True = new CFBoolean (CFObject.GetCFObjectHandle (handle, "kCFBooleanTrue"), false);
+ False = new CFBoolean (CFObject.GetCFObjectHandle (handle, "kCFBooleanFalse"), false);
}
finally {
CFObject.dlclose (handle);