]> git.sur5r.net Git - openldap/commitdiff
ITS#2267: SASL empty cred fix
authorKurt Zeilenga <kurt@openldap.org>
Tue, 21 Jan 2003 17:31:55 +0000 (17:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 21 Jan 2003 17:31:55 +0000 (17:31 +0000)
libraries/libldap/sasl.c

index d418c78c6d048d6cc517f25677ab7d19feddb14e..fa3bcf9dbd3625966bba449ec9dd359c5df8b267 100644 (file)
@@ -105,7 +105,7 @@ ldap_sasl_bind(
                        ld->ld_version, dn, LDAP_AUTH_SIMPLE,
                        cred );
                
-       } else if ( cred == NULL ) {
+       } else if ( cred == NULL || cred->bv_val == NULL ) {
                /* SASL bind w/o creditials */
                rc = ber_printf( ber, "{it{ist{sN}N}" /*}*/,
                        ++ld->ld_msgid, LDAP_REQ_BIND,