summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-01-04 18:48:47 +0100
committerVolker Lendecke <vl@samba.org>2011-01-07 13:28:05 +0100
commit6ba4bddb61cb6033a7937152966a608c1bbced40 (patch)
tree56a9c41645cef3006e19f3f5eb6461a587411e96 /source3/winbindd
parenta32f021d66f7b4f5cc3b902371a22ced1f786fee (diff)
downloadsamba-6ba4bddb61cb6033a7937152966a608c1bbced40.tar.gz
samba-6ba4bddb61cb6033a7937152966a608c1bbced40.tar.bz2
samba-6ba4bddb61cb6033a7937152966a608c1bbced40.zip
s3: Make name_query use /tmp/.nmbd/unexpected
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_wins.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/source3/winbindd/winbindd_wins.c b/source3/winbindd/winbindd_wins.c
index ea385a6406..164816ce2e 100644
--- a/source3/winbindd/winbindd_wins.c
+++ b/source3/winbindd/winbindd_wins.c
@@ -94,10 +94,9 @@ static struct sockaddr_storage *lookup_byname_backend(TALLOC_CTX *mem_ctx,
const char *name,
int *count)
{
- int fd;
struct ip_service *ret = NULL;
struct sockaddr_storage *return_ss = NULL;
- int j, i, flags = 0;
+ int j, i;
NTSTATUS status;
*count = 0;
@@ -121,11 +120,6 @@ static struct sockaddr_storage *lookup_byname_backend(TALLOC_CTX *mem_ctx,
return return_ss;
}
- fd = wins_lookup_open_socket_in();
- if (fd == -1) {
- return NULL;
- }
-
/* uggh, we have to broadcast to each interface in turn */
for (j=iface_count() - 1;
j >= 0;
@@ -134,14 +128,13 @@ static struct sockaddr_storage *lookup_byname_backend(TALLOC_CTX *mem_ctx,
if (!bcast_ss) {
continue;
}
- status = name_query(fd, name, 0x20, True, True,bcast_ss,
- mem_ctx, &return_ss, count, &flags, NULL);
+ status = name_query(name, 0x20, True, True,bcast_ss,
+ mem_ctx, &return_ss, count, NULL);
if (NT_STATUS_IS_OK(status)) {
break;
}
}
- close(fd);
return return_ss;
}