]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
updown: Don't call the script for per-CPU SAs
authorTobias Brunner <tobias@strongswan.org>
Mon, 31 May 2021 14:12:27 +0000 (16:12 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 28 May 2025 14:35:26 +0000 (16:35 +0200)
Rules are installed for the fallback SA that has no CPU ID assigned.

src/libcharon/plugins/updown/updown_listener.c

index f4ab964e998fe039bf1417e0e981fbbe8367b3a7..a62184a268a3b42217c531a083fff3f997e89761 100644 (file)
@@ -435,6 +435,11 @@ METHOD(listener_t, child_updown, bool,
        enumerator_t *enumerator;
        child_cfg_t *config;
 
+       if (child_sa->get_cpu(child_sa) != CPU_ID_MAX)
+       {       /* don't call the script for per-CPU SAs */
+               return TRUE;
+       }
+
        config = child_sa->get_config(child_sa);
        if (config->get_updown(config))
        {