diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-08-12 15:15:02 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-09-09 10:56:16 +0200 |
commit | 2d38a03d77096467f32ca6b3baad4a8d5110313c (patch) | |
tree | 16bb39f65166a770d1af04676aa26b63849d9e0a | |
parent | 34e402ef8da46fdd38715611eb7ad1ea49ea1f40 (diff) | |
download | strongswan-2d38a03d77096467f32ca6b3baad4a8d5110313c.tar.bz2 strongswan-2d38a03d77096467f32ca6b3baad4a8d5110313c.tar.xz |
ikev1: Make sure proposed IPsec mode matches our own
References #557.
-rw-r--r-- | src/libcharon/sa/ikev1/tasks/quick_mode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcharon/sa/ikev1/tasks/quick_mode.c b/src/libcharon/sa/ikev1/tasks/quick_mode.c index 0d6be3881..1133aab65 100644 --- a/src/libcharon/sa/ikev1/tasks/quick_mode.c +++ b/src/libcharon/sa/ikev1/tasks/quick_mode.c @@ -1030,7 +1030,8 @@ METHOD(task_t, process_r, status_t, } tsi->destroy_offset(tsi, offsetof(traffic_selector_t, destroy)); tsr->destroy_offset(tsr, offsetof(traffic_selector_t, destroy)); - if (!this->config || !this->tsi || !this->tsr) + if (!this->config || !this->tsi || !this->tsr || + this->mode != this->config->get_mode(this->config)) { DBG1(DBG_IKE, "no matching CHILD_SA config found"); return send_notify(this, INVALID_ID_INFORMATION); |