summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-01-04 18:34:38 +0100
committerVolker Lendecke <vl@samba.org>2011-01-07 13:28:04 +0100
commita32f021d66f7b4f5cc3b902371a22ced1f786fee (patch)
treec969994ade79b23ee72b2d8e962507aecc9648aa /source3/winbindd
parent77a9b0e265ae6e65bd0a0b73f65b3a8953b3f59d (diff)
downloadsamba-a32f021d66f7b4f5cc3b902371a22ced1f786fee.tar.gz
samba-a32f021d66f7b4f5cc3b902371a22ced1f786fee.tar.bz2
samba-a32f021d66f7b4f5cc3b902371a22ced1f786fee.zip
s3: Make node_status_query use /tmp/.nmbd/unexpected
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_wins.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/winbindd/winbindd_wins.c b/source3/winbindd/winbindd_wins.c
index 720feaf83a..ea385a6406 100644
--- a/source3/winbindd/winbindd_wins.c
+++ b/source3/winbindd/winbindd_wins.c
@@ -73,23 +73,17 @@ static int wins_lookup_open_socket_in(void)
static struct node_status *lookup_byaddr_backend(TALLOC_CTX *mem_ctx,
const char *addr, int *count)
{
- int fd;
struct sockaddr_storage ss;
struct nmb_name nname;
struct node_status *result;
NTSTATUS status;
- fd = wins_lookup_open_socket_in();
- if (fd == -1)
- return NULL;
-
make_nmb_name(&nname, "*", 0);
if (!interpret_string_addr(&ss, addr, AI_NUMERICHOST)) {
return NULL;
}
- status = node_status_query(fd, &nname, &ss, mem_ctx,
+ status = node_status_query(mem_ctx, &nname, &ss,
&result, count, NULL);
- close(fd);
if (!NT_STATUS_IS_OK(status)) {
return NULL;
}