Fix handling of optional cred

This commit is contained in:
Kurt Zeilenga 2000-09-15 00:09:44 +00:00
parent b4c9287f45
commit 825c3c4c5c

View File

@ -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 ) {