From: Tobias Brunner Date: Thu, 15 Oct 2020 11:42:57 +0000 (+0200) Subject: child-sa: Only reinstall VIPs if any are passed X-Git-Tag: 5.9.1rc1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de69d255963bd7cb3c6119c6fa3d4b1cdfd3a3d0;p=thirdparty%2Fstrongswan.git child-sa: Only reinstall VIPs if any are passed --- diff --git a/src/libcharon/sa/child_sa.c b/src/libcharon/sa/child_sa.c index 207763953d..2f61802f5e 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,