Merge pull request #865 from davidhorstmann-arm/3.0-fix-session-copy-bug-chglog

Add changelog entry for session copy bugfix
This commit is contained in:
Manuel Pégourié-Gonnard 2021-12-09 09:21:28 +01:00 committed by GitHub
commit 49c20954e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,6 @@
Bugfix
* Fix a double-free that happened after mbedtls_ssl_set_session() or
mbedtls_ssl_get_session() failed with MBEDTLS_ERR_SSL_ALLOC_FAILED
(out of memory). After that, calling mbedtls_ssl_session_free()
and mbedtls_ssl_free() would cause an internal session buffer to
be free()'d twice.