diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-02-09 19:44:50 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-02-09 19:44:50 +0100 |
commit | 4f29e8a75c7ea63601724be2fd63eb776f839fde (patch) | |
tree | 2ea03ea359a2fd51353f135e7ade99efbd4d5751 /source3/libads/ldap_printer.c | |
parent | 0d0aec18a2d2a49095da3fe1ac1dd51797c72d7d (diff) | |
parent | a734c85c287ccf3280e7cefe69fae6b772b4ea8d (diff) | |
download | samba-4f29e8a75c7ea63601724be2fd63eb776f839fde.tar.gz samba-4f29e8a75c7ea63601724be2fd63eb776f839fde.tar.bz2 samba-4f29e8a75c7ea63601724be2fd63eb776f839fde.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/libads/ldap_printer.c')
-rw-r--r-- | source3/libads/ldap_printer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c index 023acaa638..c9c43f0e10 100644 --- a/source3/libads/ldap_printer.c +++ b/source3/libads/ldap_printer.c @@ -310,20 +310,19 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli, const char *printer) { WERROR result; - char *printername, *servername; + char *printername; REGVAL_CTR *dsdriver_ctr, *dsspooler_ctr; uint32 i; POLICY_HND pol; - if ((asprintf(&servername, "\\\\%s", cli->desthost) == -1) - || (asprintf(&printername, "%s\\%s", servername, printer) == -1)) { + if ((asprintf(&printername, "%s\\%s", cli->srv_name_slash, printer) == -1)) { DEBUG(3, ("Insufficient memory\n")); return WERR_NOMEM; } result = rpccli_spoolss_open_printer_ex(cli, mem_ctx, printername, "", MAXIMUM_ALLOWED_ACCESS, - servername, cli->auth->user_name, + cli->srv_name_slash, cli->auth->user_name, &pol); if (!W_ERROR_IS_OK(result)) { DEBUG(3, ("Unable to open printer %s, error is %s.\n", |