From: Kurt Zeilenga Date: Tue, 21 Jan 2003 17:31:55 +0000 (+0000) Subject: ITS#2267: SASL empty cred fix X-Git-Tag: NO_SLAP_OP_BLOCKS~551 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35f673aaa55e659ce5fec47d407a987da5e0b131;p=openldap ITS#2267: SASL empty cred fix --- diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index d418c78c6d..fa3bcf9dbd 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 ) { + } 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,