From: Howard Chu Date: Thu, 28 Nov 2002 16:15:27 +0000 (+0000) Subject: Fix ITS#2200, must send non-NULL cred even if it's zero-length. X-Git-Tag: NO_SLAP_OP_BLOCKS~753 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4056a8c8a76d3f9d2f2a830b342eb1d042067c92;p=openldap Fix ITS#2200, must send non-NULL cred even if it's zero-length. --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index e5c64921d5..19cc3f6e94 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -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,