From: Martin Willi Date: Wed, 24 Sep 2025 13:15:03 +0000 (+0200) Subject: child-create: Raise an ALERT_TS_MISMATCH when receiving TS_UNACCEPTABLE X-Git-Tag: 6.0.3rc1~7^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86a50d161820603e5aa024be7f76944c6c8525ce;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/src/libcharon/sa/ikev2/tasks/child_create.c b/src/libcharon/sa/ikev2/tasks/child_create.c index 29c4c495df..37575f57fd 100644 --- a/src/libcharon/sa/ikev2/tasks/child_create.c +++ b/src/libcharon/sa/ikev2/tasks/child_create.c @@ -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; }