Fix val is None

This commit is contained in:
Steven B 2024-12-13 15:19:20 +00:00
parent aba71744ca
commit 4e9b0ee0eb
No known key found for this signature in database
GPG Key ID: 6D5B46B3679F2A43

View File

@ -609,6 +609,8 @@ class SslAesTransport(BaseTransport):
_sha256_hash32, _sha256_hash32,
lambda x: x.decode(), lambda x: x.decode(),
}: }:
if not val:
continue
pwd_hash = func(val.encode()) pwd_hash = func(val.encode())
ec = self.generate_confirm_hash(local_nonce, server_nonce, pwd_hash) ec = self.generate_confirm_hash(local_nonce, server_nonce, pwd_hash)
if device_confirm == ec: if device_confirm == ec: