]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
child-sa: Only reinstall VIPs if any are passed
authorTobias Brunner <tobias@strongswan.org>
Thu, 15 Oct 2020 11:42:57 +0000 (13:42 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 27 Oct 2020 15:42:00 +0000 (16:42 +0100)
src/libcharon/sa/child_sa.c

index 207763953dbed9c70bcf8a14339e607ecf012aae..2f61802f5effeab18af58c20ff0daef90a4c59f3 100644 (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,