Don't init SASL library until we actually want a SASL session

This commit is contained in:
Howard Chu 2003-12-03 01:59:33 +00:00
parent 51358be911
commit dc19332bb9
2 changed files with 5 additions and 2 deletions

View File

@ -499,6 +499,11 @@ ldap_int_sasl_open(
return ld->ld_errno;
}
if ( ldap_int_sasl_init() ) {
ld->ld_errno = LDAP_LOCAL_ERROR;
return ld->ld_errno;
}
#if SASL_VERSION_MAJOR >= 2
rc = sasl_client_new( "ldap", host, NULL, NULL,
NULL, 0, &ctx );

View File

@ -611,6 +611,4 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
}
openldap_ldap_init_w_env(gopts, NULL);
ldap_int_sasl_init();
}