kernel-interface: Always set vip if get_address_by_ts() returns successfully
This commit is contained in:
@@ -665,6 +665,10 @@ METHOD(kernel_interface_t, get_address_by_ts, status_t,
|
|||||||
if (ts->includes(ts, host))
|
if (ts->includes(ts, host))
|
||||||
{
|
{
|
||||||
*ip = host_create_any(family);
|
*ip = host_create_any(family);
|
||||||
|
if (vip)
|
||||||
|
{
|
||||||
|
*vip = FALSE;
|
||||||
|
}
|
||||||
host->destroy(host);
|
host->destroy(host);
|
||||||
DBG2(DBG_KNL, "using host %H", *ip);
|
DBG2(DBG_KNL, "using host %H", *ip);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user