From de69d255963bd7cb3c6119c6fa3d4b1cdfd3a3d0 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 15 Oct 2020 13:42:57 +0200 Subject: [PATCH] child-sa: Only reinstall VIPs if any are passed --- src/libcharon/sa/child_sa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcharon/sa/child_sa.c b/src/libcharon/sa/child_sa.c index 207763953..2f61802f5 100644 --- a/src/libcharon/sa/child_sa.c +++ b/src/libcharon/sa/child_sa.c @@ -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,