child-create: Raise an ALERT_TS_MISMATCH when receiving TS_UNACCEPTABLE
When sending a TS_UNACCEPTABLE notify, a ALERT_TS_MISMATCH is sent, but not when receiving one. This seems inconsistent compared to proposal mismatch handling, so extend the child_create task to raise such an alert.
This commit is contained in:
committed by
Tobias Brunner
parent
d46529fe2d
commit
86a50d1618
@@ -2490,6 +2490,10 @@ static void raise_alerts(private_child_create_t *this, notify_type_t type)
|
||||
charon->bus->alert(charon->bus, ALERT_PROPOSAL_MISMATCH_CHILD, list);
|
||||
list->destroy_offset(list, offsetof(proposal_t, destroy));
|
||||
break;
|
||||
case TS_UNACCEPTABLE:
|
||||
charon->bus->alert(charon->bus, ALERT_TS_MISMATCH,
|
||||
this->tsi, this->tsr);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user