]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Collect badness values in ntor_ref.py; don't just clobber.
authorNick Mathewson <nickm@torproject.org>
Thu, 9 Apr 2015 15:57:55 +0000 (11:57 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 9 Apr 2015 15:57:55 +0000 (11:57 -0400)
Fixes bug 15591; patch from joelanders

changes/bug15591 [new file with mode: 0644]
src/test/ntor_ref.py

diff --git a/changes/bug15591 b/changes/bug15591
new file mode 100644 (file)
index 0000000..1398a02
--- /dev/null
@@ -0,0 +1,4 @@
+  o Testing:
+    - Check for matching value in server response in ntor_ref.py.
+      Fixes bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
+      by "joelanders".
index e37637d92a64850f984ff14c4e9f804c711d808f..767da57a9c7186e992e395a0f26ae14c7d1f0cdd 100755 (executable)
@@ -283,7 +283,7 @@ def client_part2(seckey_x, msg, node_id, pubkey_B, keyBytes=72):
     my_auth = H_mac(auth_input)
 
     badness = my_auth != their_auth
-    badness = bad_result(yx) + bad_result(bx)
+    badness |= bad_result(yx) + bad_result(bx)
 
     if badness:
         return None