charon-tkm: Only skip creation of first child SA
Use the new is_first boolean parameter of the ALERT_KEEP_ON_CHILD_SA_FAILURE alert to determine if the failure was caused by the first CHILD SA.
This commit is contained in:
committed by
Tobias Brunner
parent
8262be3cdc
commit
ded14df603
@@ -14,6 +14,8 @@
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <daemon.h>
|
||||
#include <encoding/payloads/auth_payload.h>
|
||||
#include <utils/chunk.h>
|
||||
@@ -209,6 +211,13 @@ METHOD(listener_t, alert, bool,
|
||||
{
|
||||
tkm_keymat_t *keymat;
|
||||
isa_id_type isa_id;
|
||||
int is_first;
|
||||
|
||||
is_first = va_arg(args, int);
|
||||
if (!is_first)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
keymat = (tkm_keymat_t*)ike_sa->get_keymat(ike_sa);
|
||||
isa_id = keymat->get_isa_id(keymat);
|
||||
|
||||
Reference in New Issue
Block a user