From: Kurt Zeilenga Date: Fri, 15 Sep 2000 00:09:24 +0000 (+0000) Subject: Don't send optional cred if empty X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2003 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4c9287f45fb86c88248d115a27f330cbe65fa4e;p=openldap Don't send optional cred if empty --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 1c74713da6..a17ca56c9e 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -103,7 +103,7 @@ ldap_sasl_bind( ld->ld_version, dn, LDAP_AUTH_SIMPLE, cred ); - } else if ( cred == NULL ) { + } else if ( cred == NULL || !cred->bv_len ) { /* SASL bind w/o creditials */ rc = ber_printf( ber, "{it{ist{sN}N}" /*}*/, ++ld->ld_msgid, LDAP_REQ_BIND,