summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-28 09:56:21 +0100
committerGünther Deschner <gd@samba.org>2008-03-28 09:59:01 +0100
commitfae5873cada8454f52d4b216888077663a9cd0b2 (patch)
treeaf99c2a5610d35d1bb667397b866e82305bcd318
parent06634a883e95a358a4f4420e2126a663425d1fee (diff)
downloadsamba-fae5873cada8454f52d4b216888077663a9cd0b2.tar.gz
samba-fae5873cada8454f52d4b216888077663a9cd0b2.tar.bz2
samba-fae5873cada8454f52d4b216888077663a9cd0b2.zip
Fix blob used in pull_netr_AcctLockStr().
Thanks metze. Guenther (This used to be commit 565a30ac3208d89de617b28f4553911484033253)
-rw-r--r--source3/utils/net_rpc_samsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index 819ebedfa4..80bc6eeacb 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -116,7 +116,7 @@ static NTSTATUS pull_netr_AcctLockStr(TALLOC_CTX *mem_ctx,
return NT_STATUS_NO_MEMORY;
}
- blob = data_blob_const(r->string, r->length*2);
+ blob = data_blob_const(r->array, r->length);
ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, str,
(ndr_pull_flags_fn_t)ndr_pull_netr_AcctLockStr);