From 6c9a13f438c3d01c905cbbae269efce0748ac692 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 11 May 2018 23:04:22 -0400 Subject: fixed variable name to be correct (#4226) --- src/cryptography/hazmat/backends/openssl/backend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index bfcf6fba..9cf969cd 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -1296,9 +1296,9 @@ class Backend(object): except UnsupportedAlgorithm: curve_nid = self._lib.NID_undef - ctx = self._lib.EC_GROUP_new_by_curve_name(curve_nid) + group = self._lib.EC_GROUP_new_by_curve_name(curve_nid) - if ctx == self._ffi.NULL: + if group == self._ffi.NULL: errors = self._consume_errors() self.openssl_assert( curve_nid == self._lib.NID_undef or @@ -1310,7 +1310,7 @@ class Backend(object): return False else: self.openssl_assert(curve_nid != self._lib.NID_undef) - self._lib.EC_GROUP_free(ctx) + self._lib.EC_GROUP_free(group) return True def elliptic_curve_signature_algorithm_supported( -- cgit v1.2.3