git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6589f17
)
s3: Fix two c++ warnings
author
Volker Lendecke
<vl@samba.org>
Sat, 17 Sep 2011 23:27:53 +0000
(
01:27
+0200)
committer
Volker Lendecke
<vlendec@samba.org>
Sun, 18 Sep 2011 15:24:22 +0000
(17:24 +0200)
source3/rpc_client/util_lsarpc.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/util_lsarpc.c
b/source3/rpc_client/util_lsarpc.c
index 169c10bb5d574bfd751debf6ead19936fcc4c7f7..d67144b18f38f91f4fb8f27f23524cd6769c0d1d 100644
(file)
--- a/
source3/rpc_client/util_lsarpc.c
+++ b/
source3/rpc_client/util_lsarpc.c
@@
-50,7
+50,7
@@
static NTSTATUS ai_array_2_trust_domain_info_buffer(TALLOC_CTX *mem_ctx,
status = NT_STATUS_INVALID_PARAMETER;
goto fail;
}
- b[i].data.data = talloc_memdup(b,
+ b[i].data.data =
(uint8_t *)
talloc_memdup(b,
&ai->array[i].AuthInfo.nt4owf.password.hash,
16);
if (b[i].data.data == NULL) {
@@
-76,7
+76,7
@@
static NTSTATUS ai_array_2_trust_domain_info_buffer(TALLOC_CTX *mem_ctx,
goto fail;
}
b[i].data.size = 4;
- b[i].data.data = talloc_memdup(b,
+ b[i].data.data =
(uint8_t *)
talloc_memdup(b,
&ai->array[i].AuthInfo.version.version, 4);
if (b[i].data.data == NULL) {
status = NT_STATUS_NO_MEMORY;