summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 13:42:38 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:08 +0200
commitcc4b2a6dc31cd2e1609d18da27ea8f3caadeaf28 (patch)
tree28ef16c7ced00653306ea64964feede6fd1c5e97 /source3
parent9b40092cbd2ee9b9942a4f5ee6041354cffc9227 (diff)
downloadsamba-cc4b2a6dc31cd2e1609d18da27ea8f3caadeaf28.tar.gz
samba-cc4b2a6dc31cd2e1609d18da27ea8f3caadeaf28.tar.bz2
samba-cc4b2a6dc31cd2e1609d18da27ea8f3caadeaf28.zip
s3:net_rpc_printer: make use of cli_state_remote_sockaddr()
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_printer.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index e57d1f1fe4..7396dadf53 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -1895,8 +1895,10 @@ NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c,
b_dst = pipe_hnd_dst->binding_handle;
/* open print$-share on the src server */
- nt_status = connect_to_service(c, &cli_share_src, &cli->dest_ss,
- cli->desthost, "print$", "A:");
+ nt_status = connect_to_service(c, &cli_share_src,
+ cli_state_remote_sockaddr(cli),
+ cli->desthost,
+ "print$", "A:");
if (!NT_STATUS_IS_OK(nt_status))
goto done;
@@ -1904,8 +1906,10 @@ NTSTATUS rpc_printer_migrate_drivers_internals(struct net_context *c,
/* open print$-share on the dst server */
- nt_status = connect_to_service(c, &cli_share_dst, &cli_dst->dest_ss,
- cli_dst->desthost, "print$", "A:");
+ nt_status = connect_to_service(c, &cli_share_dst,
+ cli_state_remote_sockaddr(cli_dst),
+ cli_dst->desthost,
+ "print$", "A:");
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;