diff options
| author | Cory Benfield <cory.benfield@metaswitch.com> | 2014-05-27 14:19:34 +0100 |
|---|---|---|
| committer | Cory Benfield <cory.benfield@metaswitch.com> | 2014-05-27 14:19:34 +0100 |
| commit | 4969c22cf65f91f5bc87bf25ce45875dae32f576 (patch) | |
| tree | 998ab6e0e626e2313e91cdba7fa9d9dbc34af4af /OpenSSL/SSL.py | |
| parent | cd010f60e56683a5f093979abbe7e57ac766c21f (diff) | |
| download | pyopenssl-4969c22cf65f91f5bc87bf25ce45875dae32f576.tar.gz | |
Copy buffer into bytestring.
Diffstat (limited to 'OpenSSL/SSL.py')
| -rw-r--r-- | OpenSSL/SSL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py index 48e3790..e97df8b 100644 --- a/OpenSSL/SSL.py +++ b/OpenSSL/SSL.py @@ -869,7 +869,7 @@ class Context(object): # The string passed to us is actually made up of multiple # length-prefixed bytestrings. We need to split that into a list. - instr = _ffi.buffer(in_, inlen) + instr = _ffi.buffer(in_, inlen)[:] protolist = [] while instr: l = indexbytes(instr, 0) |
