eap-radius: Don't send RADIUS Accounting Start messages twice

If a client does Mode Config during reauthentication the assign_vips()
event might be triggered twice, we should not send another Start message
in that case.

Fixes #937.
This commit is contained in:
Tobias Brunner
2015-08-06 14:57:47 +02:00
parent 186d25cbe6
commit d04b093374
@@ -694,6 +694,11 @@ static void send_start(private_eap_radius_accounting_t *this, ike_sa_t *ike_sa)
entry = get_or_create_entry(this, ike_sa->get_id(ike_sa),
ike_sa->get_unique_id(ike_sa));
if (entry->start_sent)
{
this->mutex->unlock(this->mutex);
return;
}
entry->start_sent = TRUE;
message = radius_message_create(RMC_ACCOUNTING_REQUEST);