summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-23 15:20:22 +0100
committerVolker Lendecke <vlendec@samba.org>2010-12-29 23:30:44 +0100
commit86ff8cf227c759189080ade0deb4f5b184bb14f7 (patch)
tree86bfa637c324bb2dba67e797f39b8a4d32e18cb9 /source3/winbindd
parent65f4f22cb4a201fb3f4f4adbb576d3a8909d4bfd (diff)
downloadsamba-86ff8cf227c759189080ade0deb4f5b184bb14f7.tar.gz
samba-86ff8cf227c759189080ade0deb4f5b184bb14f7.tar.bz2
samba-86ff8cf227c759189080ade0deb4f5b184bb14f7.zip
s3: Allow more control over smbsock_[any_]connect
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Dec 29 23:30:44 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index f3eba90901..5f42120a4c 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -1382,8 +1382,8 @@ static bool find_new_dc(TALLOC_CTX *mem_ctx,
if ((addrs == NULL) || (dcnames == NULL))
return False;
- status = smbsock_any_connect(addrs, dcnames, num_addrs,
- fd, &fd_index, NULL);
+ status = smbsock_any_connect(addrs, dcnames, NULL, NULL, NULL,
+ num_addrs, 0, fd, &fd_index, NULL);
if (!NT_STATUS_IS_OK(status)) {
for (i=0; i<num_dcs; i++) {
char ab[INET6_ADDRSTRLEN];
@@ -1494,7 +1494,8 @@ static NTSTATUS cm_open_connection(struct winbindd_domain *domain,
{
NTSTATUS status;
- status = smbsock_connect(&domain->dcaddr, NULL, NULL,
+ status = smbsock_connect(&domain->dcaddr, 0,
+ NULL, -1, NULL, -1,
&fd, NULL);
if (!NT_STATUS_IS_OK(status)) {
fd = -1;