diff options
Diffstat (limited to 'source3/rpcclient/cmd_reg.c')
-rw-r--r-- | source3/rpcclient/cmd_reg.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/rpcclient/cmd_reg.c b/source3/rpcclient/cmd_reg.c index 991d76b3a3..22a420a27e 100644 --- a/source3/rpcclient/cmd_reg.c +++ b/source3/rpcclient/cmd_reg.c @@ -904,14 +904,6 @@ static NTSTATUS cmd_reg_shutdown(struct cli_state *cli, TALLOC_CTX *mem_ctx, uint16 flgs = 0; int opt; int ret; - char *srv_name; - - ret = asprintf (&srv_name, "\\\\%s", cli->desthost); - if (ret < 0) { - DEBUG(0,("cmd_reg_shutdown: Not enough memory!\n")); - return NT_STATUS_UNSUCCESSFUL; - } - strupper(srv_name); *msg = 0; optind = 0; /* TODO: test if this hack works on other systems too --simo */ @@ -967,14 +959,6 @@ static NTSTATUS cmd_reg_abort_shutdown(struct cli_state *cli, { NTSTATUS result = NT_STATUS_UNSUCCESSFUL; int ret; - char *srv_name; - - ret = asprintf(&srv_name, "\\\\%s", cli->desthost); - if (ret < 0) { - DEBUG(0,("cmd_reg_shutdown: Not enough memory!\n")); - return NT_STATUS_UNSUCCESSFUL; - } - strupper(srv_name); result = cli_reg_abort_shutdown(cli, mem_ctx, srv_name); |