summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-06-03 15:49:55 +0200
committerVolker Lendecke <vl@samba.org>2011-06-12 17:07:47 +0200
commitebf04d79abdf0a15248a266162c8ec8906ce3c5f (patch)
treef4b3f8a9cf3510c75a96e225893201a4d849c7d6 /source3/winbindd
parenteb16915e283879aaf0797896fc9bd96b095ff550 (diff)
downloadsamba-ebf04d79abdf0a15248a266162c8ec8906ce3c5f.tar.gz
samba-ebf04d79abdf0a15248a266162c8ec8906ce3c5f.tar.bz2
samba-ebf04d79abdf0a15248a266162c8ec8906ce3c5f.zip
s3: Remove "struct ip_service" from resolve_wins
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_wins.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/source3/winbindd/winbindd_wins.c b/source3/winbindd/winbindd_wins.c
index 7ed330f81b..25c04df6bc 100644
--- a/source3/winbindd/winbindd_wins.c
+++ b/source3/winbindd/winbindd_wins.c
@@ -31,29 +31,17 @@ static struct sockaddr_storage *lookup_byname_backend(TALLOC_CTX *mem_ctx,
const char *name,
int *count)
{
- struct ip_service *ret = NULL;
struct sockaddr_storage *return_ss = NULL;
- int j, i;
+ int j;
NTSTATUS status;
*count = 0;
/* always try with wins first */
- if (NT_STATUS_IS_OK(resolve_wins(name,0x20,&ret,count))) {
+ status = resolve_wins(name, 0x20, mem_ctx, &return_ss, count);
+ if (NT_STATUS_IS_OK(status)) {
if ( *count == 0 )
return NULL;
- return_ss = talloc_array(mem_ctx, struct sockaddr_storage,
- *count);
- if (return_ss == NULL ) {
- free( ret );
- return NULL;
- }
-
- /* copy the IP addresses */
- for ( i=0; i<(*count); i++ )
- return_ss[i] = ret[i].ss;
-
- free( ret );
return return_ss;
}