kernel-interface: Always set `vip` if get_address_by_ts() returns successfully

This commit is contained in:
Tobias Brunner 2016-06-10 13:52:30 +02:00
parent ebeaac1f2b
commit 436f64d5bc
1 changed files with 4 additions and 0 deletions

View File

@ -665,6 +665,10 @@ METHOD(kernel_interface_t, get_address_by_ts, status_t,
if (ts->includes(ts, host))
{
*ip = host_create_any(family);
if (vip)
{
*vip = FALSE;
}
host->destroy(host);
DBG2(DBG_KNL, "using host %H", *ip);
return SUCCESS;