summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2015-11-01 16:35:41 -0800
committerJeff Forcier <jeff@bitprophet.org>2015-11-01 16:35:41 -0800
commite937e37d2559064d3f746e6b969546f44b858e52 (patch)
tree2b81f109eeb4a34312c80fa5350ad6ca7b8083fd
parent66ff4deabbd1c14df3fd2d8729107d904c30c7d5 (diff)
What a dumb-as-rocks typo
-rw-r--r--paramiko/transport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py
index 98b810ee..773a8769 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1536,7 +1536,7 @@ class Transport (threading.Thread, ClosingContextManager):
m.add_bytes(self.session_id)
# Fallback to SHA1 for kex engines that fail to specify a hex
# algorithm, or for e.g. transport tests that don't run kexinit.
- hash_algo = getattr(self.kex_engine, 'hex_algo', sha1)
+ hash_algo = getattr(self.kex_engine, 'hash_algo', None)
out = sofar = hash_algo(m.asbytes()).digest()
while len(out) < nbytes:
m = Message()