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:
@@ -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),
|
entry = get_or_create_entry(this, ike_sa->get_id(ike_sa),
|
||||||
ike_sa->get_unique_id(ike_sa));
|
ike_sa->get_unique_id(ike_sa));
|
||||||
|
if (entry->start_sent)
|
||||||
|
{
|
||||||
|
this->mutex->unlock(this->mutex);
|
||||||
|
return;
|
||||||
|
}
|
||||||
entry->start_sent = TRUE;
|
entry->start_sent = TRUE;
|
||||||
|
|
||||||
message = radius_message_create(RMC_ACCOUNTING_REQUEST);
|
message = radius_message_create(RMC_ACCOUNTING_REQUEST);
|
||||||
|
|||||||
Reference in New Issue
Block a user