diff options
-rw-r--r-- | paramiko/ecdsakey.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/ecdsakey.py b/paramiko/ecdsakey.py index b607eee1..353c5f9e 100644 --- a/paramiko/ecdsakey.py +++ b/paramiko/ecdsakey.py @@ -160,9 +160,10 @@ class ECDSAKey(PKey): pointinfo = msg.get_binary() try: - self.verifying_key = ec.EllipticCurvePublicKey.from_encoded_point( + key = ec.EllipticCurvePublicKey.from_encoded_point( self.ecdsa_curve.curve_class(), pointinfo ) + self.verifying_key = key except ValueError: raise SSHException("Invalid public key") |