From 4ace732f4420390dad3693d8583d555d810554ea Mon Sep 17 00:00:00 2001 From: gpotter2 Date: Wed, 25 Oct 2017 03:11:12 +0200 Subject: [PATCH] Fix critical OSX read_routes6 bug --- scapy/route6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scapy/route6.py b/scapy/route6.py index 5e91f5669..0ed70f507 100644 --- a/scapy/route6.py +++ b/scapy/route6.py @@ -257,10 +257,10 @@ class Route6: if in6_isgladdr(dst) and in6_isaddr6to4(dst): # TODO : see if taking the longest match between dst and # every source addresses would provide better results - tmp = [x for x in res if in6_isaddr6to4(x[1][1])] + tmp = [x for x in res if in6_isaddr6to4(x[2][1])] elif in6_ismaddr(dst) or in6_islladdr(dst): # TODO : I'm sure we are not covering all addresses. Check that - tmp = [x for x in res if x[1][0] == conf.iface6] + tmp = [x for x in res if x[2][0] == conf.iface6] if tmp: res = tmp