diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-05-30 16:48:39 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-31 00:53:19 +0200 |
commit | a06b9b413e6e739310d6f0e95ad5d31f9503482a (patch) | |
tree | 09df2279d59505fe9576e27c4e2c2f13807b21cb | |
parent | 5b8cb6b2be4008d3f985e304f6c7cf259672e616 (diff) | |
download | samba-a06b9b413e6e739310d6f0e95ad5d31f9503482a.tar.gz samba-a06b9b413e6e739310d6f0e95ad5d31f9503482a.tar.bz2 samba-a06b9b413e6e739310d6f0e95ad5d31f9503482a.zip |
lib/dbwrap: fix db_rbt_store and update the per record node pointer
metze
-rw-r--r-- | lib/dbwrap/dbwrap_rbt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dbwrap/dbwrap_rbt.c b/lib/dbwrap/dbwrap_rbt.c index a86173aa10..a87b85fe27 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); |