From: Pierangelo Masarati Date: Fri, 1 Jul 2005 09:25:55 +0000 (+0000) Subject: don't use missing hooks (ITS#3817) X-Git-Tag: OPENLDAP_AC_BP~473 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b42207d048ece1f08708dcaab27ce20601a808bc;p=openldap don't use missing hooks (ITS#3817) --- diff --git a/servers/slapd/overlays/glue.c b/servers/slapd/overlays/glue.c index 965a1e9895..fda3061d6c 100644 --- a/servers/slapd/overlays/glue.c +++ b/servers/slapd/overlays/glue.c @@ -549,14 +549,23 @@ glue_entry_release_rw ( ) { BackendDB *b0, b2; - int rc; + int rc = -1; b0 = op->o_bd; b2 = *op->o_bd; b2.bd_info = (BackendInfo *)glue_tool_inst( op->o_bd->bd_info ); op->o_bd = glue_back_select (&b2, &e->e_nname); - rc = op->o_bd->be_release( op, e, rw ); + if ( op->o_bd->be_release ) { + rc = op->o_bd->be_release( op, e, rw ); + + } else { + /* FIXME: mimic be_entry_release_rw + * when no be_release() available */ + /* free entry */ + entry_free( e ); + rc = 0; + } op->o_bd = b0; return rc; }