fix previously faulty fix to enum_routes

This commit is contained in:
arvidn 2017-05-21 23:21:02 -04:00
parent aed1f4ef9d
commit a985773f4b
1 changed files with 2 additions and 1 deletions

View File

@ -901,7 +901,8 @@ namespace libtorrent
{
rtm = reinterpret_cast<rt_msghdr*>(next);
if (rtm->rtm_version != RTM_VERSION
|| rtm->rtm_type != RTM_ADD)
|| (rtm->rtm_type != RTM_ADD
&& rtm->rtm_type != RTM_GET))
{
continue;
}