1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib/dbwrap: fix db_rbt_store and update the per record node pointer

metze
This commit is contained in:
Stefan Metzmacher 2012-05-30 16:48:39 +02:00
parent 5b8cb6b2be
commit a06b9b413e

View File

@ -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);