]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/bind.c
Merge remote branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
[openldap] / servers / slapd / back-bdb / bind.c
index 526786be5922aeed5e17d9308704e6e0ca884ed3..7139e64ffc9d35e3f30741d1a53c126d3d1cea18 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2008 The OpenLDAP Foundation.
+ * Copyright 2000-2012 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -43,10 +43,10 @@ bdb_bind( Operation *op, SlapReply *rs )
        switch ( be_rootdn_bind( op, NULL ) ) {
        case LDAP_SUCCESS:
                /* frontend will send result */
-               return rs->sr_err;
+               return rs->sr_err = LDAP_SUCCESS;
 
        default:
-               /* give the database a chanche */
+               /* give the database a chance */
                /* NOTE: this behavior departs from that of other backends,
                 * since the others, in case of password checking failure
                 * do not give the database a chance.  If an entry with