From cc4b2a6dc31cd2e1609d18da27ea8f3caadeaf28 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 13:42:38 +0200 Subject: [PATCH] s3:net_rpc_printer: make use of cli_state_remote_sockaddr() metze --- source3/utils/net_rpc_printer.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index e57d1f1fe44..7396dadf532 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; -- 2.11.4.GIT