]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2200, must send non-NULL cred even if it's zero-length.
authorHoward Chu <hyc@openldap.org>
Thu, 28 Nov 2002 16:15:27 +0000 (16:15 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Nov 2002 16:15:27 +0000 (16:15 +0000)
libraries/libldap/sasl.c

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