summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-12-07 11:56:48 +0100
committerGünther Deschner <gd@samba.org>2007-12-07 11:56:48 +0100
commitb2fac35adf2821e20fc9e74287e9d171b258ab6e (patch)
treeaa9fe1dbe46bdb70691bfb7db2a9dc07df8868f6
parent61dbd449b8918e52d7de8011dec0cb5f79bb25c5 (diff)
downloadsamba-b2fac35adf2821e20fc9e74287e9d171b258ab6e.tar.gz
samba-b2fac35adf2821e20fc9e74287e9d171b258ab6e.tar.bz2
samba-b2fac35adf2821e20fc9e74287e9d171b258ab6e.zip
Allow to set custom message in wkssvc messagebuffer.
Guenther (This used to be commit 4c03cbdc816842f1d657fdc8499e3ad9a459f0d7)
-rw-r--r--source3/rpcclient/cmd_wkssvc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_wkssvc.c b/source3/rpcclient/cmd_wkssvc.c
index 44b77decd2..d136cd0d45 100644
--- a/source3/rpcclient/cmd_wkssvc.c
+++ b/source3/rpcclient/cmd_wkssvc.c
@@ -95,12 +95,17 @@ static WERROR cmd_wkssvc_messagebuffersend(struct rpc_pipe_client *cli,
const char *message_sender_name = cli->cli->desthost;
smb_ucs2_t *message_buffer = NULL;
size_t message_size = 0;
+ const char *message = "my message";
NTSTATUS status;
WERROR werr;
+ if (argc > 1) {
+ message = argv[1];
+ }
+
message_size = push_ucs2_talloc(mem_ctx,
&message_buffer,
- "my message");
+ message);
if (message_size == -1) {
return WERR_NOMEM;
}