diff options
author | Wu Zheng <wu.zheng@intel.com> | 2012-07-02 13:21:05 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-07-02 10:00:18 +0200 |
commit | 0830d06cd64556bc2b51aec47616ca1f3b28512f (patch) | |
tree | a3e65edc57e3737817330744e6125fcf42c88637 /src/tethering.c | |
parent | a5f8716fecec6036f92e3c6d4762f0e6c230fce6 (diff) | |
download | connman-0830d06cd64556bc2b51aec47616ca1f3b28512f.tar.gz connman-0830d06cd64556bc2b51aec47616ca1f3b28512f.tar.bz2 connman-0830d06cd64556bc2b51aec47616ca1f3b28512f.zip |
tethering: Fix incorrect index value for 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 result in the private network is block used externally.
Diffstat (limited to 'src/tethering.c')
-rw-r--r-- | src/tethering.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tethering.c b/src/tethering.c index c67f2007..265408b8 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; |