s4:libnet Use str_list_make_single() in resolv code
authorAndrew Bartlett <abartlet@samba.org>
Wed, 13 May 2009 12:20:10 +0000 (22:20 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 13 May 2009 19:56:59 +0000 (05:56 +1000)
source4/libnet/libnet_lookup.c

index fc30782..ab26814 100644 (file)
@@ -129,7 +129,7 @@ NTSTATUS libnet_Lookup_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
        if (NT_STATUS_IS_OK(status)) {
                s = talloc_get_type(c->private_data, struct lookup_state);
 
-               io->out.address = (const char **)str_list_make(mem_ctx, s->address, NULL);
+               io->out.address = (const char **)str_list_make_single(mem_ctx, s->address);
                NT_STATUS_HAVE_NO_MEMORY(io->out.address);
        }