diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index d8bc17221e..7e2ad49639 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -2201,6 +2201,11 @@ int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6) static void *h; h = dlopen("/usr/local/parasoft/insure++lite/lib.linux2/libinsure.so", RTLD_LAZY); fn = dlsym(h, "_Insure_trap_error"); + + if (!h || h == _Insure_trap_error) { + h = dlopen("/usr/local/parasoft/lib.linux2/libinsure.so", RTLD_LAZY); + fn = dlsym(h, "_Insure_trap_error"); + } } ret = fn(a1, a2, a3, a4, a5, a6); |