summaryrefslogtreecommitdiff
path: root/source4/wrepl_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 /source4/wrepl_server
parentec64f7907d290276485e61b540e844bf1c839713 (diff)
downloadsamba-b181a0b96b8313206923e6f5b46b0803aaf64907.tar.gz
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 'source4/wrepl_server')
-rw-r--r--source4/wrepl_server/wrepl_in_connection.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/wrepl_server/wrepl_in_connection.c b/source4/wrepl_server/wrepl_in_connection.c
index 962a1cb7fa4..251e5a02475 100644
--- a/source4/wrepl_server/wrepl_in_connection.c
+++ b/source4/wrepl_server/wrepl_in_connection.c
@@ -467,10 +467,7 @@ NTSTATUS wreplsrv_setup_sockets(struct wreplsrv_service *service, struct loadpar
}
}
} else {
- address = lpcfg_socket_address(lp_ctx);
- if (strcmp(address, "") == 0) {
- address = "0.0.0.0";
- }
+ address = "0.0.0.0";
status = stream_setup_socket(task, task->event_ctx, task->lp_ctx,
model_ops, &wreplsrv_stream_ops,
"ipv4", address, &port, lpcfg_socket_options(task->lp_ctx),