]> git.sur5r.net Git - openldap/commitdiff
don't leave 'round pointers to buffers on the stack
authorPierangelo Masarati <ando@openldap.org>
Wed, 2 Jan 2008 23:08:04 +0000 (23:08 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 2 Jan 2008 23:08:04 +0000 (23:08 +0000)
servers/slapd/back-bdb/modify.c

index f20812ac0f948a49f62c0625b4723fe155133989..5a4fbbf641feb7fc39e83c89a7f76e6b8fbbccd5 100644 (file)
@@ -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;
 }