diff options
Diffstat (limited to 'source3/winbindd/winbindd_wins.c')
-rw-r--r-- | source3/winbindd/winbindd_wins.c | 8 |
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; } |