charon-tkm: Fix SAD insertion when adding ESA
Commit f5fc592 added the reqid to the SAD. The insert call swapped the
order of the esa_id and reqid parameters.
This commit is contained in:
committed by
Tobias Brunner
parent
17d3435693
commit
9ae6b507b9
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user