diff options
author | Damien George <damien.p.george@gmail.com> | 2018-05-31 21:47:26 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-05-31 21:47:26 +1000 |
commit | 98b9f0fc9d0fe14c5f13faf2e9b902422919594c (patch) | |
tree | af9d864c23bd89fb94f8b0d0365009c9b95a7a0e /py | |
parent | c60589c02b998794837489a6c6e51c4723af097f (diff) |
extmod/modussl_mbedtls: Populate sock member right away in wrap_socket.
Otherwise the "sock" member may have an undefined value if wrap_socket
fails with an exception and exits early, and then if the finaliser runs it
will try to close an invalid stream object.
Fixes issue #3828.
Diffstat (limited to 'py')
0 files changed, 0 insertions, 0 deletions