(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:
Assar Westerlund
1999-05-31 16:42:16 +00:00
parent ed37037da2
commit cc83d2275d

View File

@@ -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;