From 6ba4bddb61cb6033a7937152966a608c1bbced40 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 4 Jan 2011 18:48:47 +0100 Subject: s3: Make name_query use /tmp/.nmbd/unexpected --- source3/winbindd/winbindd_wins.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'source3/winbindd') 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; } -- cgit