Skip to content

Commit

Permalink
Fixed incorrect use of non-const helper in the tun router
Browse files Browse the repository at this point in the history
  • Loading branch information
ereOn committed Apr 14, 2015
1 parent 0b7df46 commit f74b835
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/freelan/src/router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ namespace freelan

m_ipv4_filter.parse(data);

if (m_ipv4_filter.get_last_helper())
if (m_ipv4_filter.get_last_const_helper())
{
const boost::asio::ip::address_v4 destination = m_ipv4_filter.get_last_helper()->destination();
const boost::asio::ip::address_v4 destination = m_ipv4_filter.get_last_const_helper()->destination();

m_ipv4_filter.clear_last_helper();

Expand All @@ -94,9 +94,9 @@ namespace freelan
{
m_ipv6_filter.parse(data);

if (m_ipv6_filter.get_last_helper())
if (m_ipv6_filter.get_last_const_helper())
{
const boost::asio::ip::address_v6 destination = m_ipv6_filter.get_last_helper()->destination();
const boost::asio::ip::address_v6 destination = m_ipv6_filter.get_last_const_helper()->destination();

m_ipv6_filter.clear_last_helper();

Expand Down

0 comments on commit f74b835

Please sign in to comment.