Do not send 0.0.0.0/0 traffic selectors as Split-Include Unity attributes

It seems that iOS devices don't like them.
This commit is contained in:
Martin Willi 2012-11-21 10:08:04 +01:00
parent 48b23d06a8
commit b5d27839ad
1 changed files with 6 additions and 2 deletions

View File

@ -62,8 +62,12 @@ METHOD(enumerator_t, attribute_enumerate, bool,
!ts->is_dynamic(ts) &&
ts->to_subnet(ts, &net, &mask))
{
ts->destroy(ts);
break;
if (mask > 0)
{
ts->destroy(ts);
break;
}
net->destroy(net);
}
ts->destroy(ts);
}