From a32f021d66f7b4f5cc3b902371a22ced1f786fee Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 4 Jan 2011 18:34:38 +0100 Subject: s3: Make node_status_query use /tmp/.nmbd/unexpected --- source3/winbindd/winbindd_wins.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source3/winbindd/winbindd_wins.c') 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; } -- cgit