Enable Cisco Unity only if Unity vendor id received

This commit is contained in:
Martin Willi
2012-09-18 17:17:48 +02:00
parent 6e60807637
commit 284ed1b352
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -116,7 +116,8 @@ METHOD(listener_t, narrow, bool,
private_unity_narrow_t *this, ike_sa_t *ike_sa, child_sa_t *child_sa,
narrow_hook_t type, linked_list_t *local, linked_list_t *remote)
{
if (ike_sa->get_version(ike_sa) == IKEV1)
if (ike_sa->get_version(ike_sa) == IKEV1 &&
ike_sa->supports_extension(ike_sa, EXT_CISCO_UNITY))
{
switch (type)
{