]> git.sur5r.net Git - openldap/commitdiff
Fix handling of optional cred
authorKurt Zeilenga <kurt@openldap.org>
Fri, 15 Sep 2000 00:09:44 +0000 (00:09 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 15 Sep 2000 00:09:44 +0000 (00:09 +0000)
servers/slapd/bind.c

index 5358cec384bfe672017da0ad89709ee0ba751450..4d96e0431efc685f3020e22762a0880268f10b28 100644 (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 ) {