Use RTLD_GROUP

This commit is contained in:
Luke Howard
2011-01-03 14:05:47 +11:00
parent 098148ac20
commit 77121ec58c

View File

@@ -281,7 +281,11 @@ _gss_load_mech(void)
#define RTLD_LOCAL 0
#endif
so = dlopen(lib, RTLD_LAZY | RTLD_LOCAL);
#ifndef RTLD_GROUP
#define RTLD_GROUP 0
#endif
so = dlopen(lib, RTLD_LAZY | RTLD_LOCAL | RTLD_GROUP);
if (!so) {
/* fprintf(stderr, "dlopen: %s\n", dlerror()); */
free(mech_oid.elements);