]> git.sur5r.net Git - openldap/commitdiff
only free entries dup'ed by rwm_entry_get_rw() (ITS#6058)
authorPierangelo Masarati <ando@openldap.org>
Mon, 20 Apr 2009 14:54:18 +0000 (14:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 20 Apr 2009 14:54:18 +0000 (14:54 +0000)
servers/slapd/overlays/rwm.c

index 93b1ae33b053ad019f74c7008c3e056c7c9a6345..3e6ba4952a1bcc7dc32c76bdf0f554d0c6efa648 100644 (file)
@@ -823,7 +823,7 @@ rwm_entry_release_rw( Operation *op, Entry *e, int rw )
        }
 
        /* just free entry if (probably) ours */
-       if ( e->e_private == NULL ) {
+       if ( e->e_private == NULL && BER_BVISNULL( &e->e_bv ) ) {
                entry_free( e );
                return LDAP_SUCCESS;
        }