From: Kurt Zeilenga Date: Fri, 15 Sep 2000 00:09:44 +0000 (+0000) Subject: Fix handling of optional cred X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2002 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=825c3c4c5cdb62a0dea93a23360f171283d38474;p=openldap Fix handling of optional cred --- diff --git a/servers/slapd/bind.c b/servers/slapd/bind.c index 5358cec384..4d96e0431e 100644 --- a/servers/slapd/bind.c +++ b/servers/slapd/bind.c @@ -114,6 +114,10 @@ do_bind( if ( tag == LDAP_TAG_LDAPCRED ) { tag = ber_scanf( ber, "o", &cred ); + } else { + tag = LDAP_TAG_LDAPCRED; + cred.bv_val = NULL; + cred.bv_len = 0; } if ( tag != LBER_ERROR ) {