From: Stefan Metzmacher Date: Wed, 30 May 2012 14:48:39 +0000 (+0200) Subject: lib/dbwrap: fix db_rbt_store and update the per record node pointer X-Git-Tag: samba-4.0.0beta1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a06b9b413e6e739310d6f0e95ad5d31f9503482a;p=thirdparty%2Fsamba.git lib/dbwrap: fix db_rbt_store and update the per record node pointer metze --- diff --git a/lib/dbwrap/dbwrap_rbt.c b/lib/dbwrap/dbwrap_rbt.c index a86173aa103..a87b85fe276 100644 --- a/lib/dbwrap/dbwrap_rbt.c +++ b/lib/dbwrap/dbwrap_rbt.c @@ -153,6 +153,7 @@ static NTSTATUS db_rbt_store(struct db_record *rec, TDB_DATA data, int flag) memcpy(this_key.dptr, rec->key.dptr, node->keysize); TALLOC_FREE(rec_priv->node); + rec_priv->node = node; memcpy(this_val.dptr, data.dptr, node->valuesize);