From: Kurt Zeilenga Date: Sun, 6 Aug 2000 05:25:10 +0000 (+0000) Subject: ITS#647 from Paul R. Turgyan X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2307 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b33f8b75d3d829b73882470049e921d06f8c905b;p=openldap ITS#647 from Paul R. Turgyan When calling ldap_search looking for "supportedSASLMechanisms", a NULL string should be passed to ldap_search and not a NULL pointer. --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index a98f41e205..1c74713da6 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -357,7 +357,7 @@ ldap_pvt_sasl_getmechs ( LDAP *ld, char **pmechlist ) Debug( LDAP_DEBUG_TRACE, "ldap_pvt_sasl_getmech\n", 0, 0, 0 ); - rc = ldap_search_s( ld, NULL, LDAP_SCOPE_BASE, + rc = ldap_search_s( ld, "", LDAP_SCOPE_BASE, NULL, attrs, 0, &res ); if ( rc != LDAP_SUCCESS ) {