struct lookup_state {
struct composite_context *resolve_ctx;
struct nbt_name hostname;
- char address[16];
+ const char **address;
};
s->hostname.name = talloc_strdup(s, io->in.hostname);
s->hostname.type = io->in.type;
s->hostname.scope = NULL;
+ s->address = io->out.address;
c->private = s;
c->state = SMBCLI_REQUEST_SEND;
s = talloc_get_type(c->private, struct lookup_state);
- status = resolve_name_recv(s->resolve_ctx, mem_ctx, io->out.address);
+ status = resolve_name_recv(s->resolve_ctx, mem_ctx, s->address);
return status;
}