]> git.sur5r.net Git - openldap/commitdiff
ITS#6169: do not access freed memory in dds_expire()
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 11 Jun 2009 03:10:11 +0000 (03:10 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 11 Jun 2009 03:10:11 +0000 (03:10 +0000)
servers/slapd/overlays/dds.c

index 561062d578ab49b8bf35f39a53c12a0f7341b905..fda9d70edb4dc4a7a38727bb6713b357a95a55af 100644 (file)
@@ -243,10 +243,9 @@ done_search:;
                                        de->de_ndn.bv_val, rs.sr_err );
                                break;
                        }
-       
+
                        if ( de != NULL ) {
                                *dep = de->de_next;
-                               dep = &de->de_next;
                                op->o_tmpfree( de, op->o_tmpmemctx );
                        }
                }