charon-tkm: Reset ESA on child SA create failure
Since we are also releasing the ESA ID we have to make sure that the ESA context is reset and in a clean state in order for it to be actually reusable.
This commit is contained in:
parent
59e7298ff9
commit
fc08e6af8a
|
@ -199,6 +199,7 @@ METHOD(kernel_ipsec_t, add_sa, status_t,
|
|||
return SUCCESS;
|
||||
|
||||
failure:
|
||||
ike_esa_reset(esa_id);
|
||||
tkm->sad->remove(tkm->sad, esa_id);
|
||||
sad_failure:
|
||||
tkm->idmgr->release_id(tkm->idmgr, TKM_CTX_ESA, esa_id);
|
||||
|
|
Loading…
Reference in New Issue