child-sa: Only reinstall VIPs if any are passed

This commit is contained in:
Tobias Brunner 2020-10-15 13:42:57 +02:00
parent 60caa4f6c6
commit de69d25596
1 changed files with 4 additions and 1 deletions

View File

@ -1605,7 +1605,10 @@ METHOD(child_sa_t, update, status_t,
/* we reinstall the virtual IP to handle interface roaming
* correctly */
vips->invoke_function(vips, reinstall_vip, me);
if (vips)
{
vips->invoke_function(vips, reinstall_vip, me);
}
/* reinstall updated policies */
install_policies_internal(this, me, other, my_ts, other_ts,