summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-27 12:31:28 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-27 17:59:51 +1000
commitb181a0b96b8313206923e6f5b46b0803aaf64907 (patch)
treecc3d5aba5a971adc68a1e2f65663a528bd468175 /source3/rpc_server
parentec64f7907d290276485e61b540e844bf1c839713 (diff)
downloadsamba-b181a0b96b8313206923e6f5b46b0803aaf64907.tar.gz
samba-b181a0b96b8313206923e6f5b46b0803aaf64907.tar.bz2
samba-b181a0b96b8313206923e6f5b46b0803aaf64907.zip
lib/param: Remove use of lp{cfg,}_socket_address outside the NBT client and server
In these other cases, control of the sockets to bind to can be obtained using "bind interfaces only = yes" and "interfaces = ". Andrew Bartlett
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/rpc_sock_helper.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/source3/rpc_server/rpc_sock_helper.c b/source3/rpc_server/rpc_sock_helper.c
index c767cd817d..198df903ad 100644
--- a/source3/rpc_server/rpc_sock_helper.c
+++ b/source3/rpc_server/rpc_sock_helper.c
@@ -98,18 +98,15 @@ NTSTATUS rpc_create_tcpip_sockets(const struct ndr_interface_table *iface,
}
}
} else {
- const char *sock_addr = lp_socket_address();
+ const char *sock_addr;
const char *sock_ptr;
char *sock_tok;
- if (strequal(sock_addr, "0.0.0.0") ||
- strequal(sock_addr, "::")) {
#if HAVE_IPV6
- sock_addr = "::,0.0.0.0";
+ sock_addr = "::,0.0.0.0";
#else
- sock_addr = "0.0.0.0";
+ sock_addr = "0.0.0.0";
#endif
- }
for (sock_ptr = sock_addr;
next_token_talloc(talloc_tos(), &sock_ptr, &sock_tok, " \t,");
@@ -217,18 +214,15 @@ NTSTATUS rpc_setup_tcpip_sockets(struct tevent_context *ev_ctx,
}
}
} else {
- const char *sock_addr = lp_socket_address();
+ const char *sock_addr;
const char *sock_ptr;
char *sock_tok;
- if (strequal(sock_addr, "0.0.0.0") ||
- strequal(sock_addr, "::")) {
#if HAVE_IPV6
- sock_addr = "::,0.0.0.0";
+ sock_addr = "::,0.0.0.0";
#else
- sock_addr = "0.0.0.0";
+ sock_addr = "0.0.0.0";
#endif
- }
for (sock_ptr = sock_addr;
next_token_talloc(talloc_tos(), &sock_ptr, &sock_tok, " \t,");