child-sa: Only reinstall VIPs if any are passed

This commit is contained in:
Tobias Brunner
2020-10-27 16:42:00 +01:00
parent 60caa4f6c6
commit de69d25596
+4 -1
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,