mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Fix handling of optional cred
This commit is contained in:
parent
b4c9287f45
commit
825c3c4c5c
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user