summaryrefslogtreecommitdiff
path: root/source3/torture/pdbtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/pdbtest.c')
-rw-r--r--source3/torture/pdbtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c
index e1a35b7912..8b15f9629b 100644
--- a/source3/torture/pdbtest.c
+++ b/source3/torture/pdbtest.c
@@ -291,9 +291,9 @@ int main(int argc, char **argv)
pdb_get_account_policy(AP_PASSWORD_HISTORY, &history);
if (history * PW_HISTORY_ENTRY_LEN < NT_HASH_LEN) {
- buf = TALLOC(ctx, NT_HASH_LEN);
+ buf = (uint8 *)TALLOC(ctx, NT_HASH_LEN);
} else {
- buf = TALLOC(ctx, history * PW_HISTORY_ENTRY_LEN);
+ buf = (uint8 *)TALLOC(ctx, history * PW_HISTORY_ENTRY_LEN);
}
/* Generate some random hashes */