summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_netlogon.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-10-27 18:25:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:13 -0500
commit7aecd20c00b81aa2b7a20e75e9cc653ae243500b (patch)
tree831b4e5926d5a0135cc4f5f922388fbbeaad0e40 /source3/rpc_client/cli_netlogon.c
parentca551d55a894dc88c9374eb1ca0ce4b4005a22a2 (diff)
downloadsamba-7aecd20c00b81aa2b7a20e75e9cc653ae243500b.tar.gz
samba-7aecd20c00b81aa2b7a20e75e9cc653ae243500b.tar.bz2
samba-7aecd20c00b81aa2b7a20e75e9cc653ae243500b.zip
r11338: Move knowledge of \\ needed into rpc_client/cli_netlogon
(this is the way it's been done in other functions). Instead of moving this into the IDL, I think the best solution would be to write a wrapper function around any call that needs this (this is what we already do for many of the calls). Jeremy. (This used to be commit aeca4efa11728be53b81967bb5442b5b09d1a975)
Diffstat (limited to 'source3/rpc_client/cli_netlogon.c')
-rw-r--r--source3/rpc_client/cli_netlogon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index 78e682d12a..ee45331975 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -388,13 +388,15 @@ NTSTATUS rpccli_netlogon_getdcname(struct rpc_pipe_client *cli,
NET_Q_GETDCNAME q;
NET_R_GETDCNAME r;
NTSTATUS result;
+ fstring mydcname_slash;
ZERO_STRUCT(q);
ZERO_STRUCT(r);
/* Initialise input parameters */
- init_net_q_getdcname(&q, mydcname, domainname);
+ slprintf(mydcname_slash, sizeof(fstring)-1, "\\\\%s", mydcname);
+ init_net_q_getdcname(&q, mydcname_slash, domainname);
/* Marshall data and send request */