From 55f88b5b49f813bc9fff6b73e2c3c939bd7ed4ec Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 30 Sep 2010 14:26:56 +0000 Subject: [PATCH] do not assume sr_err == LDAP_SUCCESS; cleanup --- servers/slapd/back-bdb/bind.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-bdb/bind.c b/servers/slapd/back-bdb/bind.c index f982e9e4e5..c75c97024e 100644 --- a/servers/slapd/back-bdb/bind.c +++ b/servers/slapd/back-bdb/bind.c @@ -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 -- 2.39.5