[tor-commits] [stem/master] Link protocol hardcoded in circuit
atagar at torproject.org
atagar at torproject.org
Tue Apr 24 19:41:39 UTC 2018
commit 92296cd438497846128693f605ef30208a79d739
Author: Damian Johnson <atagar at torproject.org>
Date: Tue Apr 24 10:28:50 2018 -0700
Link protocol hardcoded in circuit
Oops. Iirc things indeed only work with a v3 link protocol right now, but none
the less we shouldn't hardcode it in the circuit class.
---
stem/client/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/client/__init__.py b/stem/client/__init__.py
index be7e16ad..11a97171 100644
--- a/stem/client/__init__.py
+++ b/stem/client/__init__.py
@@ -245,8 +245,8 @@ class Circuit(object):
self.relay._orport.send(encrypted_payload)
reply = next(stem.client.cell.Cell.unpack(self.relay._orport.recv(), self.relay.link_protocol))
- decrypted = self.backward_key.update(reply.pack(3)[3:])
- return stem.client.cell.RelayCell._unpack(decrypted, self.id, 3)
+ decrypted = self.backward_key.update(reply.pack(self.relay.link_protocol)[3:])
+ return stem.client.cell.RelayCell._unpack(decrypted, self.id, self.relay.link_protocol)
except:
self.forward_digest = orig_digest
self.forward_key = orig_key
More information about the tor-commits
mailing list