diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-06-19 09:35:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:30 -0500 |
commit | 7b23cd45883d1d75ffd2fabf936979500e046d62 (patch) | |
tree | c36cf1880854897835aea3e82ddbc0e314ff3e5b | |
parent | c7496c6cdb7bdcdd483868c21457350f567ec054 (diff) | |
download | samba-7b23cd45883d1d75ffd2fabf936979500e046d62.tar.gz samba-7b23cd45883d1d75ffd2fabf936979500e046d62.tar.bz2 samba-7b23cd45883d1d75ffd2fabf936979500e046d62.zip |
r7748: Use state structure in connection with io to get returned address.
rafal
(This used to be commit 345a71a08e74ddf959680615d51488f8e989cba1)
-rw-r--r-- | source4/libnet/libnet_lookup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libnet/libnet_lookup.c b/source4/libnet/libnet_lookup.c index c6dc6d0741..c517213652 100644 --- a/source4/libnet/libnet_lookup.c +++ b/source4/libnet/libnet_lookup.c @@ -35,7 +35,7 @@ struct lookup_state { struct composite_context *resolve_ctx; struct nbt_name hostname; - char address[16]; + const char **address; }; @@ -61,6 +61,7 @@ struct composite_context *libnet_Lookup_send(struct libnet_Lookup *io) 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; @@ -84,7 +85,7 @@ NTSTATUS libnet_Lookup_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, 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; } |