From: Hallvard Furuseth Date: Thu, 11 Jun 2009 03:10:11 +0000 (+0000) Subject: ITS#6169: do not access freed memory in dds_expire() X-Git-Tag: ACLCHECK_0~504 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df85e3173db8dd2d1d03374c3b274a6574d3cdcf;p=openldap ITS#6169: do not access freed memory in dds_expire() --- diff --git a/servers/slapd/overlays/dds.c b/servers/slapd/overlays/dds.c index 561062d578..fda9d70edb 100644 --- a/servers/slapd/overlays/dds.c +++ b/servers/slapd/overlays/dds.c @@ -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 ); } }