summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-10-30 12:13:21 +0100
committerGünther Deschner <gd@samba.org>2009-10-30 12:28:47 +0100
commit5e8c86c558360ea3c507dae5b3088aa1c2c97bb4 (patch)
tree6deedfbe37883a8c1e90b6050971cf43b0fe4a39 /source4
parent3d2c9ea4578f65d629eb456a59204407c8d3d639 (diff)
downloadsamba-5e8c86c558360ea3c507dae5b3088aa1c2c97bb4.tar.gz
samba-5e8c86c558360ea3c507dae5b3088aa1c2c97bb4.tar.bz2
samba-5e8c86c558360ea3c507dae5b3088aa1c2c97bb4.zip
s4-smbtorture: fix warning in RPC-WKSSVC torture test.
Guenther
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/wkssvc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/torture/rpc/wkssvc.c b/source4/torture/rpc/wkssvc.c
index d5ef0a4fda..736e1e60d6 100644
--- a/source4/torture/rpc/wkssvc.c
+++ b/source4/torture/rpc/wkssvc.c
@@ -964,14 +964,16 @@ static bool test_NetrMessageBufferSend(struct torture_context *tctx,
struct wkssvc_NetrMessageBufferSend r;
const char *message = SMBTORTURE_MESSAGE;
size_t size;
- uint8_t *msg;
+ uint16_t *msg;
- push_ucs2_talloc(tctx, (void **)&msg, message, &size);
+ if (!push_ucs2_talloc(tctx, &msg, message, &size)) {
+ return false;
+ }
r.in.server_name = dcerpc_server_name(p);
r.in.message_name = dcerpc_server_name(p);
r.in.message_sender_name = dcerpc_server_name(p);
- r.in.message_buffer = msg;
+ r.in.message_buffer = (uint8_t *)msg;
r.in.message_size = size;
torture_comment(tctx, "testing NetrMessageBufferSend\n");