From: Martin Willi Date: Thu, 7 Jan 2010 09:37:38 +0000 (+0000) Subject: Interpret private use BEET mode notify only if we know we are talking to strongSwan X-Git-Tag: 4.3.6~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3349c5694dd885f435fdd0a44d8efcc68d88851;p=thirdparty%2Fstrongswan.git Interpret private use BEET mode notify only if we know we are talking to strongSwan --- diff --git a/src/charon/sa/tasks/child_create.c b/src/charon/sa/tasks/child_create.c index 77d1641c4b..f18d381ec5 100644 --- a/src/charon/sa/tasks/child_create.c +++ b/src/charon/sa/tasks/child_create.c @@ -611,7 +611,15 @@ static void handle_notify(private_child_create_t *this, notify_payload_t *notify this->mode = MODE_TRANSPORT; break; case USE_BEET_MODE: - this->mode = MODE_BEET; + if (this->ike_sa->supports_extension(this->ike_sa, EXT_STRONGSWAN)) + { /* handle private use notify only if we know its meaning */ + this->mode = MODE_BEET; + } + else + { + DBG1(DBG_IKE, "received a notify strongSwan uses for BEET " + "mode, but peer implementation unknown, skipped"); + } break; case IPCOMP_SUPPORTED: {