| 1 |
blueness |
1.1 |
--- torsocks-1.2.orig/src/torsocks.c 2011-10-25 17:49:50.000000000 -0400
|
| 2 |
|
|
+++ torsocks-1.2/src/torsocks.c 2012-02-21 11:09:20.000000000 -0500
|
| 3 |
|
|
@@ -124,9 +124,9 @@
|
| 4 |
|
|
#define LOAD_ERROR(s,l) { \
|
| 5 |
|
|
const char *error; \
|
| 6 |
|
|
error = dlerror(); \
|
| 7 |
|
|
- show_msg(l, "The symbol %s() was not found in any shared " \
|
| 8 |
|
|
- "library. The error reported was: %s!\n", s, \
|
| 9 |
|
|
- (error)?error:"not found"); \
|
| 10 |
|
|
+ if (error) \
|
| 11 |
|
|
+ show_msg(l, "The symbol %s() was not found in any shared " \
|
| 12 |
|
|
+ "library. The error reported was: %s!\n", s, error); \
|
| 13 |
|
|
dlerror(); \
|
| 14 |
|
|
}
|
| 15 |
|
|
pthread_mutex_lock(&torsocks_init_mutex);
|