summaryrefslogtreecommitdiff
path: root/network/torsocks/symbol_lookup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'network/torsocks/symbol_lookup.patch')
-rw-r--r--network/torsocks/symbol_lookup.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/network/torsocks/symbol_lookup.patch b/network/torsocks/symbol_lookup.patch
new file mode 100644
index 0000000000..ba8e62ec36
--- /dev/null
+++ b/network/torsocks/symbol_lookup.patch
@@ -0,0 +1,16 @@
+--- src/tsocks.c 2011-10-25 17:49:50.000000000 -0400
++++ src/tsocks.c 2012-02-21 11:09:20.000000000 -0500
+@@ -175,9 +175,9 @@
+ #define LOAD_ERROR(s,l) { \
+ char *error; \
+ error = dlerror(); \
+- show_msg(l, "The symbol %s() was not found in any shared " \
+- "library. The error reported was: %s!\n", s, \
+- (error)?error:"not found"); \
++ if (error) \
++ show_msg(l, "The symbol %s() was not found in any shared " \
++ "library. The error reported was: %s!\n", s, error); \
+ dlerror(); \
+ }
+ pthread_mutex_lock(&torsocks_init_mutex);
+