Skip to content

Commit 84bd637

Browse files
committed
Copy DER buffer in get_der
1 parent a406dce commit 84bd637

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

wolfssl/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ def get_der(self):
143143
if derPtr == _ffi.NULL:
144144
return None
145145

146-
derBytes = _ffi.buffer(derPtr, outSz[0])
147-
148-
return derBytes
146+
return _ffi.buffer(derPtr, outSz[0])[:]
149147

150148
class SSLContext(object):
151149
"""

0 commit comments

Comments
 (0)