svn commit: samba r7748 - in branches/SAMBA_4_0/source/libnet: .
mimir at samba.org
mimir at samba.org
Sun Jun 19 09:35:03 GMT 2005
Author: mimir
Date: 2005-06-19 09:35:02 +0000 (Sun, 19 Jun 2005)
New Revision: 7748
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7748
Log:
Use state structure in connection with io to get returned address.
rafal
Modified:
branches/SAMBA_4_0/source/libnet/libnet_lookup.c
Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_lookup.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_lookup.c 2005-06-19 09:31:34 UTC (rev 7747)
+++ branches/SAMBA_4_0/source/libnet/libnet_lookup.c 2005-06-19 09:35:02 UTC (rev 7748)
@@ -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 @@
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 @@
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;
}
More information about the samba-cvs
mailing list