]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ikev1: Don't retransmit Aggressive Mode response ikev1-am-no-retransmit
authorTobias Brunner <tobias@strongswan.org>
Fri, 17 Jun 2016 16:19:48 +0000 (18:19 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 20 Jun 2016 09:21:23 +0000 (11:21 +0200)
These could theoretically be used for an amplified DDoS attack.

src/libcharon/sa/ikev1/task_manager_v1.c

index b0c4f5f849372295b2124fda8fd6f23759ab220b..7964fbe9e4c5954dc3310794649ea1ed8d6d91bb 100644 (file)
@@ -743,8 +743,7 @@ static status_t build_response(private_task_manager_t *this, message_t *request)
                                continue;
                        case NEED_MORE:
                                /* processed, but task needs another exchange */
-                               if (task->get_type(task) == TASK_QUICK_MODE ||
-                                       task->get_type(task) == TASK_AGGRESSIVE_MODE)
+                               if (task->get_type(task) == TASK_QUICK_MODE)
                                {       /* we rely on initiator retransmission, except for
                                         * three-message exchanges */
                                        expect_request = TRUE;