(setup_passwd_quality_check): conditionalize on RTLD_NOW
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6286 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -225,9 +225,17 @@ setup_passwd_quality_check(krb5_context context)
|
||||
void *handle;
|
||||
void *sym;
|
||||
int *version;
|
||||
int flags;
|
||||
|
||||
#ifdef RTLD_NOW
|
||||
flags = RTLD_NOW;
|
||||
#else
|
||||
flags = 0;
|
||||
#endif
|
||||
|
||||
if(check_library == NULL)
|
||||
return;
|
||||
handle = dlopen(check_library, RTLD_NOW);
|
||||
handle = dlopen(check_library, flags);
|
||||
if(handle == NULL) {
|
||||
krb5_warnx(context, "failed to open `%s'", check_library);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user