]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
charon-tkm: Fix SAD insertion when adding ESA
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Wed, 8 Apr 2015 17:52:44 +0000 (19:52 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 May 2015 15:23:51 +0000 (17:23 +0200)
Commit f5fc592 added the reqid to the SAD. The insert call swapped the
order of the esa_id and reqid parameters.

src/charon-tkm/src/tkm/tkm_kernel_ipsec.c

index 734b1ec556d4a2a12b6c513eafb22f8553da2acd..30c8e102265f95ce38c782446b96b401e2f55e2f 100644 (file)
@@ -132,7 +132,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
        }
 
        esa_id = tkm->idmgr->acquire_id(tkm->idmgr, TKM_CTX_ESA);
-       if (!tkm->sad->insert(tkm->sad, reqid, esa_id, local, peer, spi_rem,
+       if (!tkm->sad->insert(tkm->sad, esa_id, reqid, local, peer, spi_rem,
                                                  protocol))
        {
                DBG1(DBG_KNL, "unable to add entry (%llu) to SAD", esa_id);