summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/dbwrap_tdb2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/dbwrap_tdb2.c b/source3/lib/dbwrap_tdb2.c
index cbcbe71d71..9f68ef4a7d 100644
--- a/source3/lib/dbwrap_tdb2.c
+++ b/source3/lib/dbwrap_tdb2.c
@@ -569,9 +569,9 @@ static void db_tdb2_queue_change(struct db_tdb2_ctx *db_ctx, const TDB_DATA key)
}
db_ctx->changes.keys = keys;
- keys[db_ctx->changes.num_keys].data = talloc_memdup(keys,
- key.dptr,
- key.dsize);
+ keys[db_ctx->changes.num_keys].data = (uint8_t *)talloc_memdup(keys,
+ key.dptr,
+ key.dsize);
if (!keys[db_ctx->changes.num_keys].data) {
goto overflow;
}