aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/ikev2
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-10-08 11:19:54 +0200
committerMartin Willi <martin@revosec.ch>2012-10-24 11:34:30 +0200
commit418f4bc7a5a8d581889ca8e7b9da2c6ff0d9b94f (patch)
treeea79e48b7f91244a1073d1d586f9ba76cb774eee /src/libcharon/sa/ikev2
parent2b95ab76203c23f6d0857ea739ca578c43cbe645 (diff)
downloadstrongswan-418f4bc7a5a8d581889ca8e7b9da2c6ff0d9b94f.tar.bz2
strongswan-418f4bc7a5a8d581889ca8e7b9da2c6ff0d9b94f.tar.xz
Raise a bus alert when IKE message body parsing fails
Diffstat (limited to 'src/libcharon/sa/ikev2')
-rw-r--r--src/libcharon/sa/ikev2/task_manager_v2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/sa/ikev2/task_manager_v2.c b/src/libcharon/sa/ikev2/task_manager_v2.c
index 5890ba5eb..524540445 100644
--- a/src/libcharon/sa/ikev2/task_manager_v2.c
+++ b/src/libcharon/sa/ikev2/task_manager_v2.c
@@ -1045,6 +1045,8 @@ static status_t parse_message(private_task_manager_t *this, message_t *msg)
is_request ? "request" : "response",
msg->get_message_id(msg));
+ charon->bus->alert(charon->bus, ALERT_PARSE_ERROR_BODY, msg, status);
+
if (this->ike_sa->get_state(this->ike_sa) == IKE_CREATED)
{ /* invalid initiation attempt, close SA */
return DESTROY_ME;