From b33f8b75d3d829b73882470049e921d06f8c905b Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 6 Aug 2000 05:25:10 +0000 Subject: [PATCH] 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. --- libraries/libldap/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.39.5