]> git.sur5r.net Git - openldap/commitdiff
ITS#647 from Paul R. Turgyan <pturgyan@umich.edu>
authorKurt Zeilenga <kurt@openldap.org>
Sun, 6 Aug 2000 05:25:10 +0000 (05:25 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 6 Aug 2000 05:25:10 +0000 (05:25 +0000)
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

index a98f41e205d23f2dc5ca8d137760947c061c18ef..1c74713da6e2358938fea87a9ee34d18ec05cb83 100644 (file)
@@ -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 ) {