ha: Fix memory leak if Child SA key derivation fails
Fixes: aa334daa9b ("Use a sync message cache to resynchronize IKE_SAs without rekeying")
This commit is contained in:
@@ -875,6 +875,7 @@ static void process_child_add(private_ha_dispatcher_t *this,
|
||||
child_sa->destroy(child_sa);
|
||||
proposal->destroy(proposal);
|
||||
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
|
||||
message->destroy(message);
|
||||
return;
|
||||
}
|
||||
child_sa->set_proposal(child_sa, proposal);
|
||||
|
||||
Reference in New Issue
Block a user