From fae5873cada8454f52d4b216888077663a9cd0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Fri, 28 Mar 2008 09:56:21 +0100 Subject: [PATCH] Fix blob used in pull_netr_AcctLockStr(). Thanks metze. Guenther (This used to be commit 565a30ac3208d89de617b28f4553911484033253) --- source3/utils/net_rpc_samsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 819ebedfa4e..80bc6eeacb4 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);