ike-init: Send REDIRECT_SUPPORTED as initiator
authorTobias Brunner <tobias@strongswan.org>
Mon, 20 Apr 2015 13:16:10 +0000 (15:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Mar 2016 15:02:58 +0000 (16:02 +0100)
src/libcharon/sa/ikev2/tasks/ike_init.c

index 8c62864..0f9c45a 100644 (file)
@@ -324,6 +324,11 @@ static bool build_payloads(private_ike_init_t *this, message_t *message)
                        send_supported_hash_algorithms(this, message);
                }
        }
+       /* notify other peer if we support redirection */
+       if (!this->old_sa && this->initiator)
+       {
+               message->add_notify(message, FALSE, REDIRECT_SUPPORTED, chunk_empty);
+       }
        return TRUE;
 }