From: Pierangelo Masarati Date: Sun, 4 Sep 2005 20:00:40 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~488 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=596f21340e60faea576d08c77d4576049132d547;p=openldap cleanup --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 18feb7df24..25e009e1ca 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -1184,19 +1184,17 @@ be_entry_get_rw( int rw, Entry **e ) { - int rc; - *e = NULL; - if (op->o_bd == NULL) { - rc = LDAP_NO_SUCH_OBJECT; - } else if ( op->o_bd->be_fetch ) { - rc = ( op->o_bd->be_fetch )( op, ndn, - oc, at, rw, e ); - } else { - rc = LDAP_UNWILLING_TO_PERFORM; + if ( op->o_bd == NULL ) { + return LDAP_NO_SUCH_OBJECT; } - return rc; + + if ( op->o_bd->be_fetch ) { + return op->o_bd->be_fetch( op, ndn, oc, at, rw, e ); + } + + return LDAP_UNWILLING_TO_PERFORM; } int