]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ha: Fix arguments in debug statement when destroying incomplete IKE_SAs
authorTobias Brunner <tobias@strongswan.org>
Mon, 12 May 2025 13:56:27 +0000 (15:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 13 May 2025 15:15:05 +0000 (17:15 +0200)
Closes strongswan/strongswan#2781

Fixes: 97bd0e2297ed ("ha: Destroy incomplete IKE_SAs after de-/activating a segment")
src/libcharon/plugins/ha/ha_segments.c

index 32d9ee40717e55fcb5e5cf447ea351b3f6d657d6..78c48c41c918d6dd885f04a4ebf0f66e80f9aa83 100644 (file)
@@ -213,7 +213,7 @@ static void enable_disable(private_ha_segments_t *this, u_int segment,
                        {
                                DBG1(DBG_IKE, "destroying incomplete IKE_SA %s[%d] after "
                                         "%sactivating HA segment %d", ike_sa->get_name(ike_sa),
-                                        unique_id, segment, enable ? "" : "de");
+                                        unique_id, enable ? "" : "de", segment);
                                charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager,
                                                                                                                        ike_sa);
                        }