diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-27 11:18:27 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-27 11:18:27 -0500 |
commit | 040a6e1d69e94acda17d89be52c53b5dae3ddb9f (patch) | |
tree | c0c7a9a22a9a564aad66410062b0907d5de9f0d5 | |
parent | 6ca8773961b5dcfb2945b334e3ad561c72f53a4b (diff) | |
download | cryptography-040a6e1d69e94acda17d89be52c53b5dae3ddb9f.tar.gz cryptography-040a6e1d69e94acda17d89be52c53b5dae3ddb9f.tar.bz2 cryptography-040a6e1d69e94acda17d89be52c53b5dae3ddb9f.zip |
fix a ptr liveness bug
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/backend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index cb2cf7b0..38fe0772 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -512,9 +512,9 @@ def _encode_extended_key_usage(backend, extended_key_usage): res = backend._lib.sk_ASN1_OBJECT_push(eku, obj) backend.openssl_assert(res >= 1) - eku = backend._ffi.cast("EXTENDED_KEY_USAGE *", eku) + eku_ptr = backend._ffi.cast("EXTENDED_KEY_USAGE *", eku) return _encode_extension_to_der( - backend, backend._lib.i2d_EXTENDED_KEY_USAGE, eku + backend, backend._lib.i2d_EXTENDED_KEY_USAGE, eku_ptr ) |