From 51701dfde80346ecf5a0299cd777330debc44043 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 21 Aug 2012 00:10:37 +0200 Subject: [PATCH] use copy of mac, not reference --- nodedb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodedb.py b/nodedb.py index 1ad6b13..5075ea2 100644 --- a/nodedb.py +++ b/nodedb.py @@ -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