From: Pierangelo Masarati Date: Wed, 2 Jan 2008 23:08:04 +0000 (+0000) Subject: don't leave 'round pointers to buffers on the stack X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~255 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=741efa167449cfbaef2998df1eb087c5e09333f9;p=openldap don't leave 'round pointers to buffers on the stack --- diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index f20812ac0f..5a4fbbf641 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -719,5 +719,8 @@ done: slap_sl_free( (*postread_ctrl)->ldctl_value.bv_val, op->o_tmpmemctx ); slap_sl_free( *postread_ctrl, op->o_tmpmemctx ); } + + rs->sr_text = NULL; + return rs->sr_err; }