kernel-interface: Always set `vip` if get_address_by_ts() returns successfully
authorTobias Brunner <tobias@strongswan.org>
Fri, 10 Jun 2016 11:52:30 +0000 (13:52 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 10 Jun 2016 11:52:30 +0000 (13:52 +0200)
src/libcharon/kernel/kernel_interface.c

index 97d5ef1..0a0081c 100644 (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;