From: Howard Chu Date: Tue, 16 May 2006 22:16:27 +0000 (+0000) Subject: coverity cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~251 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58099cc04548a627729ca41db5e3811bfc833969;p=openldap coverity cleanup --- diff --git a/servers/slapd/slapi/slapi_overlay.c b/servers/slapd/slapi/slapi_overlay.c index 0fb616118f..12425f06c1 100644 --- a/servers/slapd/slapi/slapi_overlay.c +++ b/servers/slapd/slapi/slapi_overlay.c @@ -97,12 +97,14 @@ slapi_over_compute_output( { Attribute **a; AttributeDescription *desc; - SlapReply *rs = (SlapReply *)c->cac_private; + SlapReply *rs; if ( c == NULL || attribute == NULL || entry == NULL ) { return 0; } + rs = (SlapReply *)c->cac_private; + assert( rs->sr_entry == entry ); desc = attribute->a_desc;