summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-29 20:14:17 +0200
committerGünther Deschner <gd@samba.org>2008-04-29 20:22:02 +0200
commitfe2c8e38d3b3bff0fd3c4126a27ad683450e5408 (patch)
treef462130370d93c03b20dce7d688e94822bd71c89 /source3
parent7a6f33e3d8e3913edfd6ed86d5119ad18c407c65 (diff)
downloadsamba-fe2c8e38d3b3bff0fd3c4126a27ad683450e5408.tar.gz
samba-fe2c8e38d3b3bff0fd3c4126a27ad683450e5408.tar.bz2
samba-fe2c8e38d3b3bff0fd3c4126a27ad683450e5408.zip
rpcclient: fix another srv_name_slash.
Guenther (This used to be commit de946e6158526ec109b0c3381bab6e6d8e9cc1b2)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_srvsvc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/rpcclient/cmd_srvsvc.c b/source3/rpcclient/cmd_srvsvc.c
index 9efd4c9792..b84622f438 100644
--- a/source3/rpcclient/cmd_srvsvc.c
+++ b/source3/rpcclient/cmd_srvsvc.c
@@ -172,7 +172,6 @@ static WERROR cmd_srvsvc_srv_query_info(struct rpc_pipe_client *cli,
union srvsvc_NetSrvInfo info;
WERROR result;
NTSTATUS status;
- const char *server_name;
if (argc > 2) {
printf("Usage: %s [infolevel]\n", argv[0]);
@@ -182,12 +181,8 @@ static WERROR cmd_srvsvc_srv_query_info(struct rpc_pipe_client *cli,
if (argc == 2)
info_level = atoi(argv[1]);
- server_name = talloc_asprintf_strupper_m(mem_ctx, "\\\\%s",
- cli->desthost);
- W_ERROR_HAVE_NO_MEMORY(server_name);
-
status = rpccli_srvsvc_NetSrvGetInfo(cli, mem_ctx,
- server_name,
+ cli->srv_name_slash,
info_level,
&info,
&result);