commit e3440cf5368b12cf28d894747e8ae8dd849f9168 Author: Jacob Appelbaum jacob@appelbaum.net Date: Sun Nov 4 20:36:14 2012 +0000
Partial fix for "not found in any shared library"
Please see the following bug for discussion:
http://code.google.com/p/torsocks/issues/detail?id=3
The current partial fix by Anthony Basile:
https://bugs.gentoo.org/show_bug.cgi?id=395953#c7 --- src/torsocks.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/torsocks.c b/src/torsocks.c index f559eec..5b1c16a 100644 --- a/src/torsocks.c +++ b/src/torsocks.c @@ -124,9 +124,9 @@ void torsocks_init(void) #define LOAD_ERROR(s,l) { \ const 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);
tor-commits@lists.torproject.org