]> git.sur5r.net Git - openldap/commitdiff
ITS#4209 release entry when it exists.
authorHoward Chu <hyc@openldap.org>
Fri, 25 Nov 2005 21:40:33 +0000 (21:40 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Nov 2005 21:40:33 +0000 (21:40 +0000)
servers/slapd/overlays/accesslog.c

index 26bb076946ce6db9597487161db1b2fe4c649643..87a2aa78926b7dff6e2e11bfa46d0197b42c96af 100644 (file)
@@ -1235,7 +1235,9 @@ accesslog_db_open(
 
        rc = be_entry_get_rw( op, li->li_db->be_nsuffix, NULL, NULL, 0, &e );
 
-       if ( !e ) {
+       if ( e ) {
+               be_entry_release_rw( op, e, 0 );
+       } else {
                SlapReply rs = {REP_RESULT};
                struct berval rdn, nrdn, attr;
                char *ptr;