Good job. :-)
> -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of Wu Zheng > Sent: Monday, July 02, 2012 13:21 > To: [email protected] > Subject: [PATCH]The index value of the incoming is not correct in > __connman_private_network. > > In __connman_private_network_request, pn->fd is used as the index value > and passed to __connman_ippool_create, which is not correct. > It reslut in the private network is block used externally. > > --- > src/tethering.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/tethering.c b/src/tethering.c index c67f200..265408b > 100644 > --- a/src/tethering.c > +++ b/src/tethering.c > @@ -421,7 +421,7 @@ int __connman_private_network_request(DBusMessage > *msg, const char *owner) > pn->fd = fd; > pn->interface = iface; > pn->index = index; > - pn->pool = __connman_ippool_create(pn->fd, 1, 1, > ippool_disconnect, pn); > + pn->pool = __connman_ippool_create(pn->index, 1, 1, > ippool_disconnect, > +pn); > if (pn->pool == NULL) { > errno = -ENOMEM; > goto error; > -- > 1.7.7 > > _______________________________________________ > connman mailing list > [email protected] > http://lists.connman.net/listinfo/connman _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
