aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/task_manager_v1.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-11-25 17:58:37 +0100
committerTobias Brunner <tobias@strongswan.org>2012-03-20 17:31:08 +0100
commit29a5e0707eb6cb1fd3f23b399af8f2fa0e7efe9b (patch)
treed977734a6da91c000558d648dcd401368b6cd3fe /src/libcharon/sa/task_manager_v1.c
parentb235e69cde38ae71e8f567de9b6387922cb6a41a (diff)
downloadstrongswan-29a5e0707eb6cb1fd3f23b399af8f2fa0e7efe9b.tar.bz2
strongswan-29a5e0707eb6cb1fd3f23b399af8f2fa0e7efe9b.tar.xz
Handle unsupported IKEv1 exchange types more specifically.
Diffstat (limited to 'src/libcharon/sa/task_manager_v1.c')
-rw-r--r--src/libcharon/sa/task_manager_v1.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcharon/sa/task_manager_v1.c b/src/libcharon/sa/task_manager_v1.c
index 036de7cbb..c1868f224 100644
--- a/src/libcharon/sa/task_manager_v1.c
+++ b/src/libcharon/sa/task_manager_v1.c
@@ -699,6 +699,11 @@ static status_t parse_message(private_task_manager_t *this, message_t *msg)
{
switch (status)
{
+ case NOT_SUPPORTED:
+ DBG1(DBG_IKE, "unsupported exchange type");
+ send_notify_response(this, msg,
+ INVALID_EXCHANGE_TYPE, chunk_empty);
+ break;
case PARSE_ERROR:
DBG1(DBG_IKE, "message parsing failed");
send_notify_response(this, msg,