]> git.sur5r.net Git - openldap/commitdiff
don't leave 'round pointers to buffers on the stack
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 11 Feb 2008 22:38:09 +0000 (22:38 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 11 Feb 2008 22:38:09 +0000 (22:38 +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;
 }