use copy of mac, not reference

alfred-data
Nils Schneider 2012-08-21 00:10:37 +02:00
parent f67b8df1bc
commit 51701dfde8
1 changed files with 3 additions and 3 deletions

View File

@ -324,7 +324,7 @@ def is_derived_mac(a, b):
except ValueError:
return False
x = mac_a
x = list(mac_a)
x[5] += 1
x[5] %= 255
if mac_b == x:
@ -339,14 +339,14 @@ def is_derived_mac(a, b):
if mac_b == x:
return True
x = mac_a
x = list(mac_a)
x[0] |= 2
x[5] += 2
x[5] %= 255
if mac_b == x:
return True
x = mac_a
x = list(mac_a)
x[0] |= 2
x[3] += 1
x[3] %= 255