]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 97d5ef1f71751c080487b271a436534f6c0ca203..0a0081c2231d9b6e1b075342518fcd30d672954a 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;