mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
Fix handling of optional cred
This commit is contained in:
parent
b4c9287f45
commit
825c3c4c5c
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue