From e90a87e7ebbaec1f97407e0286fd942dc6c1366a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 30 Apr 2011 17:10:35 +0200 Subject: [PATCH] s3: Remove ip_sevice from get_ipc_connect_master_ip Autobuild-User: Volker Lendecke Autobuild-Date: Sat Apr 30 18:16:28 CEST 2011 on sn-devel-104 (cherry picked from commit 020b691cf842f30ff42474c2b0102751b5fa17ac) (cherry picked from commit ae0436dc7b3cce8fe2e7d9fa5e12deb12cd07f77) --- source3/include/proto.h | 2 +- source3/libsmb/cliconnect.c | 10 +++++----- source3/libsmb/libsmb_dir.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index d44dfb6c102..995786a2274 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1207,7 +1207,7 @@ struct cli_state *get_ipc_connect(char *server, struct sockaddr_storage *server_ss, const struct user_auth_info *user_info); struct cli_state *get_ipc_connect_master_ip(TALLOC_CTX *ctx, - struct ip_service *mb_ip, + struct sockaddr_storage *mb_ip, const struct user_auth_info *user_info, char **pp_workgroup_out); struct cli_state *get_ipc_connect_master_ip_bcast(TALLOC_CTX *ctx, diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 6d1eaadeb06..cb7b7d1bbda 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -3414,7 +3414,7 @@ struct cli_state *get_ipc_connect(char *server, */ struct cli_state *get_ipc_connect_master_ip(TALLOC_CTX *ctx, - struct ip_service *mb_ip, + struct sockaddr_storage *mb_ip, const struct user_auth_info *user_info, char **pp_workgroup_out) { @@ -3425,7 +3425,7 @@ struct cli_state *get_ipc_connect_master_ip(TALLOC_CTX *ctx, *pp_workgroup_out = NULL; - print_sockaddr(addr, sizeof(addr), &mb_ip->ss); + print_sockaddr(addr, sizeof(addr), mb_ip); DEBUG(99, ("Looking up name of master browser %s\n", addr)); @@ -3440,8 +3440,8 @@ struct cli_state *get_ipc_connect_master_ip(TALLOC_CTX *ctx, * the original wildcard query as the first choice and fall back to * MSBROWSE if the wildcard query fails. */ - if (!name_status_find("*", 0, 0x1d, &mb_ip->ss, name) && - !name_status_find(MSBROWSE, 1, 0x1d, &mb_ip->ss, name)) { + if (!name_status_find("*", 0, 0x1d, mb_ip, name) && + !name_status_find(MSBROWSE, 1, 0x1d, mb_ip, name)) { DEBUG(99, ("Could not retrieve name status for %s\n", addr)); @@ -3493,7 +3493,7 @@ struct cli_state *get_ipc_connect_master_ip_bcast(TALLOC_CTX *ctx, print_sockaddr(addr, sizeof(addr), &ip_list[i].ss); DEBUG(99, ("Found master browser %s\n", addr)); - cli = get_ipc_connect_master_ip(ctx, &ip_list[i], + cli = get_ipc_connect_master_ip(ctx, &ip_list[i].ss, user_info, pp_workgroup_out); if (cli) return(cli); diff --git a/source3/libsmb/libsmb_dir.c b/source3/libsmb/libsmb_dir.c index 3d50107f60e..b0f3c904b4d 100644 --- a/source3/libsmb/libsmb_dir.c +++ b/source3/libsmb/libsmb_dir.c @@ -540,7 +540,7 @@ SMBC_opendir_ctx(SMBCCTX *context, addr)); cli = get_ipc_connect_master_ip(talloc_tos(), - &ip_list[i], + &ip_list[i].ss, &u_info, &wg_ptr); /* cli == NULL is the master browser refused to talk or -- 2.11.4.GIT